Package jazzparser :: Package utils :: Module data
[hide private]
[frames] | no frames]

Module data

source code

Utilities relating to data handling and processing.

This module does not define datatypes itself. See jazzparser.data for that.


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Functions [hide private]
 
hold_out(full, start, end) source code
 
holdout_partition(input, partitions)
Partitions the iterable input into the given number of partitions and returns a list of subsets of the input with each of the partitions excluded.
source code
 
partition(input, partitions)
The complement of holdout_partition.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

holdout_partition(input, partitions)

source code 

Partitions the iterable input into the given number of partitions and returns a list of subsets of the input with each of the partitions excluded. Useful for doing heldout data evaluations.

partition(input, partitions)

source code 

The complement of holdout_partition. Simply splits the input n ways.