| Home | Trees | Index | Help |
|
|---|
| Package pyVerif :: Module Protocol :: Class Protocol |
|
| Method Summary | |
|---|---|
Init the protocol. | |
Make sanity checks on the ids. | |
Get the full list of clients. | |
Return the real id of the given filename. | |
Get the list of impostors files we can use for training the specified client. | |
Load the wanted protocol from the given path. | |
Get the list of ids used for the given normalization. | |
Get the list of keys for the specified norm. | |
Get the list of files we can use for the specified normalization and the specified id. | |
Get the list of files we can use for computing the scores of the specified client. | |
Get the list of files we can use for training the specified client. | |
Internal method for loading the given file. | |
Internal method for importing a module. | |
| Class Variable Summary | |
|---|---|
SRE_Pattern |
has_id_of = ^def\s+id_of\s*\(.*\)\s*:
|
SRE_Pattern |
has_something = [a-zA-Z0-9]+
|
str |
_map_fn = 'files_real_ids.lst'
|
str |
_models_fn = 'for_models.lst'
|
str |
_models_impostors_fn = 'for_models_impostors.lst'
|
str |
_norm_dir = 'norm'
|
str |
_scores_fn = 'for_scores.lst'
|
| Method Details |
|---|
__init__(self,
mode_is_dev=True)
|
check_ids(self)Make sanity checks on the ids. The tests done are:
|
clients(self)Get the full list of clients. Returns the full list of clients defined in the currently loaded protocol. |
id_of(self, filename)Return the real id of the given filename. |
impostors_list(self, id)Get the list of impostors files we can use for training the specified client. |
load(self, path, variant=None, norm_files={})
Load the wanted protocol from the given path.
variant may be used if your protocol directory has variants.
You can specify some normalizations with the dictionary
norm_files.
Sample usage:
load ('where/is/the/protocol', variant='Mc',
norm_files={'world': 'world_list.lst',
't-norm': 't-norm_list.lst'})
Note: norm_files keys may be any kind of type you want. Just
use the same when getting the lists with norm_list() method.
|
norm_ids(self, name)Get the list of ids used for the given normalization. |
norm_keys(self, name=None)Get the list of keys for the specified norm. If name is None, return the full list of keys of each norm. |
norm_list(self, name, id=None)Get the list of files we can use for the specified normalization and the specified id. name must be one of the key you passed to the norm_files of the load() method. If id is None, returns the full list of files used for the specified normalization. |
score_list(self, id=None)Get the list of files we can use for computing the scores of the specified client. If id is None, returns the full list of files used for computing scores. |
train_list(self, id=None)Get the list of files we can use for training the specified client. If id is None, returns the full list of files used for training. |
_load_file(self, filename)Internal method for loading the given file. Returns a dictionary created from the given file. |
_my_import(self, filename)Internal method for importing a module. This is used for importing a function doing the translation from filename to real id. |
| Class Variable Details |
|---|
has_id_of
|
has_something
|
_map_fn
|
_models_fn
|
_models_impostors_fn
|
_norm_dir
|
_scores_fn
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Oct 6 12:25:10 2006 | http://epydoc.sf.net |