| Home | Trees | Index | Help |
|
|---|
| Package pyVerif :: Module Model :: Class Model |
|
| Method Summary | |
|---|---|
The Model object constructor. | |
The Model object destructor. | |
Computes scores for the given samples. | |
Enable/disable the logs on the screen and/or on file. | |
Returns the commands and options used for training and building scores. | |
Returns the model id. | |
Log the given message. | |
Log general informations about the current system. | |
Returns the model name. | |
Runs the given command with the given arguments. | |
Set the commands and options to use for building scores. | |
Set the commands and options to use for training and building scores. | |
Set the used directories. | |
Set the identity of the current model. | |
Set the commands and options to use for training. | |
Enroll the model, using the given samples. | |
| Method Details |
|---|
__init__(self,
executor=None)
|
__del__(self)
|
build_scores(self, samples, overwrite=False, files_must_exist=True)Computes scores for the given samples. |
enable_log(self, on_screen=True, logfile=None)Enable/disable the logs on the screen and/or on file. |
get_cmds(self)Returns the commands and options used for training and building scores. The returned value is a tuple with 4 values:
|
id(self)Returns the model id. |
log(self, msg)Log the given message. |
log_info(self)Log general informations about the current system. |
name(self)Returns the model name. |
run(self, cmd, args='')Runs the given command with the given arguments. Returns the status of the execution. Note that the given command must be in the setted binary directory. |
set_build_scores_cmd(self, build_scores_cmd, build_scores_options)Set the commands and options to use for building scores. In the options strings, you can place markers which are replaced when the build scores command is built. See set_cmds for details on supported markers. |
set_cmds(self, train_cmd, train_options, build_scores_cmd, build_scores_options)Set the commands and options to use for training and building scores. In the options strings, you can place markers which are replaced when the train and build scores commands are be built:
|
set_dirs(self, models_dir='models', scores_dir='scores', data_dir='data', features_ext='', bin_dir='bin', tmp_dir='tmp', create=False)Set the used directories. The directories are:
|
set_identity(self, id, name=None)Set the identity of the current model. The parameter id identify this model and will be used for creating many filenames (like for example the model file name). If the name is not specified, it will be equal to the id. The id can be either a string or a number. Any other type will returns an exception ModelErrors.InvalidModelId. The name can be either a string or a number. Any other type will returns an exception ModelErrors.InvalidModelId. |
set_train_cmd(self, train_cmd, train_options)Set the commands and options to use for training. In the options strings, you can place markers which are replaced when the train command is built. See set_cmds for details on supported markers. |
train(self, samples, impostors_samples=None, targets=None, overwrite=False, files_must_exist=True)Enroll the model, using the given samples. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Oct 6 12:25:10 2006 | http://epydoc.sf.net |