Package jazzparser :: Package data :: Package input :: Class MidiTaggerTrainingBulkInput
[hide private]
[frames] | no frames]

Class MidiTaggerTrainingBulkInput

source code

    object --+            
             |            
   InputReader --+        
                 |        
         BulkInput --+    
                     |    
SegmentedMidiBulkInput --+
                         |
                        MidiTaggerTrainingBulkInput

Subclass of SegmentedMidiBulkInput for taking training input for midi supertaggers. This is identical to SegmentedMidiBulkInput, but has an additional option chords to specify a path from which to read a AnnotatedDbBulkInput. This may be used by the training procedure to initialize or train parameters, in addition to the main midi training input.

Accepts additionally all options accepted by AnnotatedDbBulkInput. These will be passed on to DbBulkInput when it's read in.

Nested Classes [hide private]

Inherited from SegmentedMidiBulkInput: INPUT_TYPE

Instance Methods [hide private]
 
__init__(self, inputs, chords=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
subset(self, *ranges)
Returns an object of the same type containing the data points in the given ranges, given as [start,end) pairs.
source code

Inherited from SegmentedMidiBulkInput: __str__

Inherited from BulkInput: __getitem__, __iter__, __len__, get_identifiers, get_partitions

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from InputReader: process_option_dict

Static Methods [hide private]
 
from_file(filename, options={}) source code

Inherited from SegmentedMidiBulkInput: writeln

Class Variables [hide private]
  FILE_INPUT_OPTIONS = SegmentedMidiBulkInput.FILE_INPUT_OPTIONS...

Inherited from SegmentedMidiBulkInput: SHELL_TOOLS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, inputs, chords=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

from_file(filename, options={})
Static Method

source code 
Overrides: InputReader.from_file

subset(self, *ranges)

source code 

Returns an object of the same type containing the data points in the given ranges, given as [start,end) pairs. Give multiple ranges as successive arguments.

A default implementation is provided, but subclasses may want to provide their own if this is not appropriate.

Overrides: BulkInput.subset
(inherited documentation)

Class Variable Details [hide private]

FILE_INPUT_OPTIONS

Value:
SegmentedMidiBulkInput.FILE_INPUT_OPTIONS+ [ModuleOption('chords', hel\
p_text= "path from which to read a bulk-db input, " "which may be used\
 in addition to the midi training " "data by the training procedure", \
usage= "chords=F, where F is an filename")]+ AnnotatedDbBulkInput.FILE\
_INPUT_OPTIONS