Module Import alias Import alias identifier Import alias identifier ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr ListLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Num Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Num Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Num Slice NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore BinOpAdd BinOpSub NameLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore BinOpDiv Num AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpDiv Num AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Index NameLoad BinOpMult NameLoad Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Num Slice attr AugAssignSub SubscriptStore NameLoad ExtSlice Slice Index NameLoad BinOpMult NameLoad Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Num Slice attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A sys N/A numpy np N/A lxmls.classifiers.linear_classifier lc lxmls.util.my_math_utils * Mira N/A N/A lc LinearClassifier N/A __init__ N/A N/A self nr_rounds regularizer averaged N/A 10 1.0 True N/A N/A N/A N/A N/A lc LinearClassifier __init__ self N/A N/A self trained False N/A N/A self nr_rounds nr_rounds N/A N/A self regularizer regularizer N/A N/A self params_per_round N/A N/A N/A self averaged averaged N/A train N/A N/A self x y seed N/A 1 N/A N/A N/A self params_per_round N/A N/A x_orig N/A x N/A N/A N/A N/A x N/A N/A self add_intercept_term x N/A N/A nr_x nr_f N/A x shape N/A nr_c N/A N/A N/A N/A np unique y shape N/A 0 N/A w N/A N/A np zeros N/A nr_f nr_c N/A round_nr N/A xrange N/A self nr_rounds N/A N/A nr N/A xrange nr_x N/A N/A N/A N/A N/A np random seed seed N/A perm N/A N/A N/A np random permutation nr_x N/A seed N/A seed 1 N/A inst N/A perm N/A nr N/A scores N/A N/A self get_scores N/A x N/A N/A inst N/A inst 1 N/A w N/A y_true N/A y N/A N/A inst N/A inst 1 N/A 0 N/A y_hat N/A N/A self get_label N/A x N/A N/A inst N/A inst 1 N/A w N/A true_margin N/A scores N/A N/A N/A y_true N/A predicted_margin N/A scores N/A N/A N/A y_hat N/A dist N/A N/A np abs N/A y_true y_hat N/A loss N/A N/A predicted_margin true_margin dist N/A N/A y_hat y_true N/A N/A N/A predicted_margin true_margin N/A N/A stepsize N/A 1 N/A self regularizer N/A N/A stepsize N/A N/A np min N/A N/A 1 N/A self regularizer N/A loss N/A l2norm_squared N/A x N/A inst N/A inst 1 N/A N/A w N/A N/A N/A y_true N/A stepsize N/A N/A N/A x N/A N/A inst N/A inst 1 N/A transpose N/A N/A w N/A N/A N/A y_hat N/A stepsize N/A N/A N/A x N/A N/A inst N/A inst 1 N/A transpose N/A N/A N/A N/A self params_per_round append N/A N/A w copy N/A N/A self trained True N/A y_pred N/A N/A self test x_orig w N/A acc N/A N/A self evaluate y y_pred N/A N/A self trained False N/A N/A Rounds: %i Accuracy: %f N/A round_nr acc N/A N/A self trained True N/A N/A N/A self averaged True N/A N/A new_w 0 N/A old_w N/A self params_per_round N/A N/A new_w old_w N/A new_w N/A new_w N/A len N/A self params_per_round N/A new_w N/A w N/A N/A