Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword IfExp UnaryOpNot SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Str Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Str If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad
N/A N/A 
``revscoring test -h``
::

    Tests a scorer model.  This utility expects to get a file of
    tab-separated feature values and labels from which to test a model.

    Usage:
        test -h | --help
        test <scorer_model> [-s=<kv>]...
             [--values-labels=<path>]
             [--model-file=<path>]
             [--label-type=<type>]
             [--scale]
             [--debug]

    Options:
        -h --help               Prints this documentation
        <scorer_model>          Path to model file that already trained.
        -s --statistic=<kv>     A test statistic argument to use to evaluate
                                the scorer model against the test set.
        --values-labels=<path>  Path to a file containing feature values and
                                labels [default: <stdin>]
        --model-file=<math>     Path to write a model file to
                                [default: <stdout>]
        --label-type=<type>     Interprets the labels as the appropriate type
                                (int, float, str, bool) [default: str]
        --debug                 Print debug logging.
 N/A logging N/A sys N/A docopt nose.tools nottest N/A util scorer_models ScorerModel scorer_models.test_statistics TestStatistic N/A logger N/A N/A logging getLogger __name__ main N/A N/A argv N/A None N/A N/A args N/A N/A docopt docopt __doc__ argv argv N/A N/A N/A logging basicConfig level N/A N/A N/A args N/A --debug N/A logging INFO N/A logging DEBUG format %(asctime)s %(levelname)s:%(name)s -- %(message)s N/A scorer_model N/A N/A ScorerModel load N/A open N/A args N/A <scorer_model> rb N/A test_statistics N/A N/A stat_str N/A args N/A --statistic N/A N/A N/A N/A test_statistics append N/A N/A TestStatistic from_stat_str stat_str N/A N/A N/A args N/A --values-labels <stdin> N/A N/A observations_f N/A sys stdin N/A N/A observations_f N/A open N/A args N/A --values-labels r N/A N/A N/A args N/A --model-file <stdout> N/A N/A model_file N/A N/A sys stdout buffer N/A N/A model_file N/A open N/A args N/A --model-file wb N/A decode_label N/A N/A util DECODERS N/A N/A args N/A --label-type N/A observations N/A N/A util read_observations observations_f N/A scorer_model features decode_label N/A observations N/A list observations N/A N/A run observations model_file scorer_model test_statistics N/A run N/A N/A observations model_file scorer_model test_statistics N/A N/A N/A scorer_model N/A test_model scorer_model observations test_statistics N/A N/A N/A N/A sys stderr write N/A N/A scorer_model format_info N/A N/A N/A N/A sys stderr write N/A N/A N/A scorer_model dump model_file N/A test_model N/A N/A scorer_model observations test_statistics N/A N/A N/A N/A N/A logger debug N/A N/A Test set: {0} format N/A len observations N/A N/A N/A logger info Testing model... N/A N/A N/A scorer_model test observations test_statistics test_statistics N/A scorer_model N/A nottest