Package jazzparser :: Package backoff :: Module base :: Class ModelBackoffBuilder
[hide private]
[frames] | no frames]

Class ModelBackoffBuilder

source code

    object --+    
             |    
BackoffBuilder --+
                 |
                ModelBackoffBuilder
Known Subclasses:

Subclass of BackoffBuilder that handles model loading.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from BackoffBuilder: get_all_paths, get_tonal_space_path

Inherited from BackoffBuilder (private): _get_input_length, _get_name

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

Class Methods [hide private]

Inherited from BackoffBuilder: check_options

Static Methods [hide private]
 
partition_model_name(model_name, partition_number)
The model name to use when the given partition number is requested.
source code
Class Variables [hide private]
  MODEL_CLASS = None
hash(x)
  BUILDER_OPTIONS = BackoffBuilder.BUILDER_OPTIONS+ [ModuleOptio...
Properties [hide private]

Inherited from BackoffBuilder: input_length, name, num_paths

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

partition_model_name(model_name, partition_number)
Static Method

source code 

The model name to use when the given partition number is requested. The default implementation simply appends the number to the model name. Subclasses may override this if they want to do something different.


Class Variable Details [hide private]

BUILDER_OPTIONS

Value:
BackoffBuilder.BUILDER_OPTIONS+ [ModuleOption('model', filter= str, he\
lp_text= "Model name. This model must have been previously trained. Re\
quired", usage= "model=X, where X is the name of a trained model", req\
uired= True), ModuleOption('partition', filter= int, help_text= "If gi\
ven, the numbered partition of the partitioned " "model will be used. \
(This generally involves appending the " "partition number to the mode\
l name.)", usage= "partition=P, where P is an int", default= None),]