prepare_evaluation_options(usage=None,
description=None,
optparse_options=[],
check_args=None,
optparse_groups=[])
| source code
|
Various tasks common to the initial part of the evaluation routine
scripts (models/eval.py).
- Parameters:
usage - the optparse usage string
description - the optparse description string
optparse_options (list of tuples) - (args,kwargs) pairs to add additional options to the optparse
parser.
check_args (function) - function to take the command-line arguments and check them. This
will be called early in the script. Must return a tuple of (1)
the model name (or model basename) that will be used in the
partition model names and (2) the input filename to get sequences
from.
optparse_groups (list of pairs) - specificatios for option groups to add to the optparse option
parser. The first of each pair is a tuple of args to
OptionGroup's init (excluding the first). The second
is a list of options each formatted as
optparse_options.
- Returns: tuple
- (1) list of (sequences,model_name,partition_index) tuples for
each partition; (2) list of lists containing the sequence ids for
each partition; (3) optparse options; (4) optparse arguments.
To Do:
This is not used any more. Remove it, after checking it's definitely
not used.
|