Module Expr Str ImportFrom alias alias Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword Str keyword BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword BinOpAdd Str Str Assign NameStore IfExp CompareGt AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore GeneratorExp NameLoad comprehension NameStore NameLoad CompareGt SubscriptLoad NameLoad Index Num Num orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore GeneratorExp NameLoad comprehension NameStore NameLoad CompareLt SubscriptLoad NameLoad Index Num Num If CompareIsNot NameLoad NameLoad body If CompareIn Str NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad Call AttributeLoad Str attr NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse Expr Call NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad Str Call NameLoad NameLoad keyword AttributeLoad NameLoad attr For TupleStore NameStore NameStore SubscriptLoad Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults UnaryOpUSub Call NameLoad SubscriptLoad NameLoad Index Num Slice NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Simple script for printing out model weights.

:author: Michael Heilman (mheilman@ets.org)
:organization: ETS
 __future__ print_function unicode_literals N/A argparse N/A logging N/A sys six iteritems N/A numpy np skll Learner skll.version __version__ main N/A N/A argv N/A None N/A N/A 
    Handles command line arguments and gets things started.

    :param argv: List of arguments, as if specified on the command-line.
                 If None, ``sys.argv[1:]`` is used instead.
    :type argv: list of str
     N/A parser N/A N/A argparse ArgumentParser description Prints out the weights of a                                                   given model. conflict_handler resolve formatter_class N/A argparse ArgumentDefaultsHelpFormatter N/A N/A N/A parser add_argument model_file help model file to load N/A N/A N/A parser add_argument --k help number of top features to print (0 for all) type int default 50 N/A N/A N/A parser add_argument --sign choices N/A positive negative all default all help N/A show only positive, only negative,  or all weights N/A N/A N/A parser add_argument --version action version version N/A N/A %(prog)s {0} format __version__ N/A args N/A N/A parser parse_args argv N/A N/A N/A logging captureWarnings True N/A N/A N/A logging basicConfig format N/A %(asctime)s - %(name)s - %(levelname)s -  %(message)s N/A k N/A N/A N/A args k 0 N/A args k None N/A learner N/A N/A Learner from_file N/A args model_file N/A N/A weights intercept N/A learner model_params N/A weight_items N/A iteritems weights N/A N/A N/A args sign positive N/A N/A weight_items N/A x N/A x weight_items N/A N/A x N/A 1 0 N/A N/A N/A N/A args sign negative N/A N/A weight_items N/A x N/A x weight_items N/A N/A x N/A 1 0 N/A N/A intercept None N/A N/A N/A _intercept_ intercept N/A N/A N/A isinstance N/A intercept N/A _intercept_ N/A np ndarray N/A N/A intercept_list N/A N/A %.12f i N/A i N/A intercept N/A _intercept_ N/A N/A print N/A N/A intercept = {} format intercept_list N/A N/A N/A print N/A N/A intercept = {:.12f} format N/A intercept N/A _intercept_ N/A N/A N/A print == intercept values == N/A N/A label val N/A N/A intercept items N/A N/A N/A print N/A N/A {:.12f}	{} format val label N/A N/A print N/A N/A print Number of nonzero features: N/A len weights file N/A sys stderr N/A N/A feat val N/A N/A sorted weight_items key N/A N/A N/A x N/A N/A N/A abs N/A x N/A 1 N/A k N/A N/A N/A print N/A N/A {:.12f}	{} format val feat N/A N/A N/A __name__ __main__ N/A N/A N/A main