Module Expr Str ImportFrom alias alias Import alias Import alias Import alias identifier ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias identifier Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Num Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num Num Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse Pass decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AugAssignDiv NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index ListLoad Num Num Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpDiv NameLoad Call AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr BinOpPow NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num ExtSlice Slice Num Slice Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore ListLoad ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Slice Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpMult Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num SubscriptLoad AttributeLoad NameLoad attr Slice Num Index Num Index Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore BinOpPow NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Num AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index ListLoad Num Num Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr TupleLoad BinOpSub NameLoad Num BinOpSub NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Num Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad BinOpMult Num NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num NameLoad Assign NameStore BinOpDiv Num NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad BinOpMult Num NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad BinOpMult Num NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Expr Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Assign NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num Assign NameStore BinOpDiv Num SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore BinOpDiv BinOpMult NameLoad NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpMult BinOpPow NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult Num BinOpSub AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AugAssignSub AttributeStore AttributeLoad NameLoad attr attr NameLoad AugAssignSub AttributeStore AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr BinOpMult Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Num Num Num Num Num Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad keyword Call NameLoad Num Num attr Expr Call NameLoad AttributeLoad NameLoad attr Num Num Expr Call NameLoad AttributeLoad NameLoad attr BinOpPow Num Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpDiv Num Num attr Assign NameStore BinOpMult ListLoad BinOpDiv Num Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index ListLoad Num Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpDiv Num SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num keyword Str Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num Expr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword Num keyword Str Assign AttributeStore NameLoad attr ListLoad Num Num Num Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num keyword Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num keyword Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad keyword NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad keyword Num attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Num Expr Call NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num keyword Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Num Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Num keyword NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad keyword NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TupleLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Assign NameStore AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str keyword Str Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Call NameLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Call NameLoad NameLoad Slice Num BinOpAdd Call NameLoad NameLoad Num Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr Num AugAssignDiv NameStore Call AttributeLoad NameLoad attr Num keyword Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Import alias identifier ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad Num Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad Str keyword NameLoad keyword Str decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Num Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd NameLoad Num Assign SubscriptStore NameLoad Index Str BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad CompareEq CompareGt NameLoad Num ListLoad NameLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd Num BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias alias Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Str Str Str Str keyword NameLoad
N/A N/A 
Test functions for models.regression
 statsmodels.compat.python long lrange N/A warnings N/A pandas N/A numpy np numpy.testing assert_almost_equal assert_approx_equal assert_ assert_raises assert_equal assert_allclose scipy.linalg toeplitz statsmodels.tools.tools add_constant categorical statsmodels.compat.numpy np_matrix_rank statsmodels.regression.linear_model OLS WLS GLS yule_walker statsmodels.datasets longley scipy.stats t student_t N/A DECIMAL_4 4 N/A DECIMAL_3 3 N/A DECIMAL_2 2 N/A DECIMAL_1 1 N/A DECIMAL_7 7 N/A DECIMAL_0 0 CheckRegressionResults N/A object N/A N/A 
    res2 contains results from Rmodelwrap or were obtained from a statistical
    packages such as R, Stata, or SAS and were written to model_results
     N/A decimal_params DECIMAL_4 test_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 params N/A N/A self res2 params N/A self decimal_params N/A N/A decimal_standarderrors DECIMAL_4 test_standarderrors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 bse N/A N/A self res2 bse N/A self decimal_standarderrors N/A N/A decimal_confidenceintervals DECIMAL_4 test_confidenceintervals N/A N/A self N/A N/A N/A conf1 N/A N/A N/A self res1 conf_int N/A conf2 N/A N/A N/A self res2 conf_int N/A i N/A range N/A len conf1 N/A N/A N/A assert_approx_equal N/A N/A conf1 N/A i N/A 0 N/A N/A conf2 N/A i N/A 0 N/A self decimal_confidenceintervals N/A N/A assert_approx_equal N/A N/A conf1 N/A i N/A 1 N/A N/A conf2 N/A i N/A 1 N/A self decimal_confidenceintervals N/A N/A decimal_conf_int_subset DECIMAL_4 test_conf_int_subset N/A N/A self N/A N/A N/A N/A N/A len N/A N/A self res1 params 1 N/A N/A ci1 N/A N/A N/A self res1 conf_int cols N/A 1 2 N/A ci2 N/A N/A N/A N/A self res1 conf_int N/A 1 3 N/A N/A assert_almost_equal ci1 ci2 N/A self decimal_conf_int_subset N/A N/A N/A N/A decimal_scale DECIMAL_4 test_scale N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 scale N/A N/A self res2 scale N/A self decimal_scale N/A N/A decimal_rsquared DECIMAL_4 test_rsquared N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 rsquared N/A N/A self res2 rsquared N/A self decimal_rsquared N/A N/A decimal_rsquared_adj DECIMAL_4 test_rsquared_adj N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 rsquared_adj N/A N/A self res2 rsquared_adj N/A self decimal_rsquared_adj N/A test_degrees N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A N/A self res1 model df_model N/A N/A self res2 df_model N/A N/A assert_equal N/A N/A N/A self res1 model df_resid N/A N/A self res2 df_resid N/A N/A decimal_ess DECIMAL_4 test_ess N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 ess N/A N/A self res2 ess N/A self decimal_ess N/A N/A decimal_ssr DECIMAL_4 test_sumof_squaredresids N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 ssr N/A N/A self res2 ssr N/A self decimal_ssr N/A N/A decimal_mse_resid DECIMAL_4 test_mse_resid N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 mse_model N/A N/A self res2 mse_model N/A self decimal_mse_resid N/A N/A decimal_mse_model DECIMAL_4 test_mse_model N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 mse_resid N/A N/A self res2 mse_resid N/A self decimal_mse_model N/A N/A decimal_mse_total DECIMAL_4 test_mse_total N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 mse_total N/A N/A self res2 mse_total N/A self decimal_mse_total err_msg N/A Test class %s self N/A N/A decimal_fvalue DECIMAL_4 test_fvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 fvalue N/A N/A self res2 fvalue N/A self decimal_fvalue N/A N/A decimal_loglike DECIMAL_4 test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 llf N/A N/A self res2 llf N/A self decimal_loglike N/A N/A decimal_aic DECIMAL_4 test_aic N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 aic N/A N/A self res2 aic N/A self decimal_aic N/A N/A decimal_bic DECIMAL_4 test_bic N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 bic N/A N/A self res2 bic N/A self decimal_bic N/A N/A decimal_pvalues DECIMAL_4 test_pvalues N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 pvalues N/A N/A self res2 pvalues N/A self decimal_pvalues N/A N/A decimal_wresid DECIMAL_4 test_wresid N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 wresid N/A N/A self res2 wresid N/A self decimal_wresid N/A N/A decimal_resids DECIMAL_4 test_resids N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 resid N/A N/A self res2 resid N/A self decimal_resids N/A N/A decimal_norm_resids DECIMAL_4 test_norm_resids N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 resid_pearson N/A N/A self res2 resid_pearson N/A self decimal_norm_resids N/A N/A TestOLS N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A results.results_regression Longley N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A res2 N/A Longley N/A N/A res2 wresid N/A res1 wresid N/A N/A cls res1 res1 N/A N/A cls res2 res2 N/A res_qr N/A N/A N/A OLS N/A data endog N/A data exog fit method qr N/A model_qr N/A OLS N/A data endog N/A data exog N/A N/A Q R N/A N/A N/A np linalg qr N/A data exog N/A N/A N/A model_qr exog_Q N/A model_qr exog_R N/A Q R N/A N/A model_qr normalized_cov_params N/A N/A N/A np linalg inv N/A N/A np dot N/A R T R N/A N/A model_qr rank N/A np_matrix_rank R N/A res_qr2 N/A N/A model_qr fit method qr N/A N/A cls res_qr res_qr N/A N/A cls res_qr_manual res_qr2 N/A classmethod test_eigenvalues N/A N/A self N/A N/A N/A eigenval_perc_diff N/A N/A N/A self res_qr eigenvals N/A N/A self res_qr_manual eigenvals N/A eigenval_perc_diff N/A N/A self res_qr eigenvals N/A zeros N/A N/A np zeros_like eigenval_perc_diff N/A N/A assert_almost_equal eigenval_perc_diff zeros DECIMAL_7 N/A test_HC0_errors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self res1 HC0_se N/A -1 N/A N/A N/A self res2 HC0_se N/A -1 DECIMAL_4 N/A N/A assert_approx_equal N/A N/A np round N/A N/A N/A self res1 HC0_se N/A -1 N/A N/A N/A self res2 HC0_se N/A -1 N/A test_HC1_errors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self res1 HC1_se N/A -1 N/A N/A N/A self res2 HC1_se N/A -1 DECIMAL_4 N/A N/A assert_approx_equal N/A N/A N/A self res1 HC1_se N/A -1 N/A N/A N/A self res2 HC1_se N/A -1 N/A test_HC2_errors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self res1 HC2_se N/A -1 N/A N/A N/A self res2 HC2_se N/A -1 DECIMAL_4 N/A N/A assert_approx_equal N/A N/A N/A self res1 HC2_se N/A -1 N/A N/A N/A self res2 HC2_se N/A -1 N/A test_HC3_errors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self res1 HC3_se N/A -1 N/A N/A N/A self res2 HC3_se N/A -1 DECIMAL_4 N/A N/A assert_approx_equal N/A N/A N/A self res1 HC3_se N/A -1 N/A N/A N/A self res2 HC3_se N/A -1 N/A test_qr_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 params N/A N/A self res_qr params 6 N/A test_qr_normalized_cov_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A np ones_like N/A N/A self res1 normalized_cov_params N/A N/A N/A self res1 normalized_cov_params N/A N/A self res_qr normalized_cov_params 5 N/A test_missing N/A N/A self N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A N/A data endog N/A N/A 3 7 14 N/A np nan N/A mod N/A OLS N/A data endog N/A data exog missing drop N/A N/A assert_equal N/A N/A N/A mod endog shape N/A 0 13 N/A N/A assert_equal N/A N/A N/A mod exog shape N/A 0 13 N/A test_rsquared_adj_overfit N/A N/A self N/A N/A N/A N/A N/A warnings catch_warnings record True N/A N/A x N/A N/A N/A np random randn 5 N/A y N/A N/A N/A np random randn 5 6 N/A results N/A N/A N/A OLS x y fit N/A rsquared_adj N/A results rsquared_adj N/A N/A assert_equal rsquared_adj N/A np nan N/A test_qr_alternatives N/A N/A self N/A N/A N/A N/A assert_allclose N/A N/A self res_qr params N/A N/A self res_qr_manual params rtol 5e-12 N/A test_norm_resid N/A N/A self N/A N/A N/A resid N/A N/A self res1 wresid N/A norm_resid N/A resid N/A N/A np sqrt N/A N/A N/A np sum N/A resid 2.0 N/A N/A self res1 df_resid N/A model_norm_resid N/A N/A self res1 resid_pearson N/A N/A assert_almost_equal model_norm_resid norm_resid DECIMAL_7 N/A test_norm_resid_zero_variance N/A N/A self N/A N/A N/A N/A N/A warnings catch_warnings record True N/A N/A y N/A N/A N/A self res1 model endog N/A res N/A N/A N/A OLS y y fit N/A N/A assert_allclose N/A res scale 0 atol 1e-20 N/A N/A assert_allclose N/A res wresid N/A res resid_pearson atol 5e-11 N/A N/A TestRTO N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A results.results_regression LongleyRTO N/A data N/A N/A longley load N/A res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A res2 N/A LongleyRTO N/A N/A res2 wresid N/A res1 wresid N/A N/A cls res1 res1 N/A N/A cls res2 res2 N/A res_qr N/A N/A N/A OLS N/A data endog N/A data exog fit method qr N/A N/A cls res_qr res_qr N/A classmethod N/A TestFtest N/A object N/A N/A 
    Tests f_test vs. RegressionResults
     setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A cls res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A R N/A N/A N/A np identity 7 N/A N/A -1 N/A N/A N/A cls Ftest N/A N/A N/A cls res1 f_test R N/A classmethod test_F N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest fvalue N/A N/A self res1 fvalue DECIMAL_4 N/A test_p N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest pvalue N/A N/A self res1 f_pvalue DECIMAL_4 N/A test_Df_denom N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest df_denom N/A N/A N/A self res1 model df_resid N/A test_Df_num N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest df_num 6 N/A N/A TestFTest2 N/A object N/A N/A 
    A joint test that the coefficient on
    GNP = the coefficient on UNEMP  and that the coefficient on
    POP = the coefficient on YEAR for the Longley dataset.

    Ftest1 is from statsmodels.  Results are from Rpy using R's car library.
     setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A R2 N/A N/A 0 1 -1 0 0 0 0 N/A 0 0 0 0 1 -1 0 N/A N/A cls Ftest1 N/A N/A res1 f_test R2 N/A hyp x2 = x3, x5 = x6 N/A N/A cls NewFtest1 N/A N/A res1 f_test hyp N/A classmethod test_new_ftest N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self NewFtest1 fvalue N/A N/A self Ftest1 fvalue N/A test_fvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest1 fvalue 9.7404618733 DECIMAL_4 N/A test_pvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest1 pvalue 0.00560528853175 DECIMAL_4 N/A test_df_denom N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest1 df_denom 9 N/A test_df_num N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest1 df_num 2 N/A N/A TestFtestQ N/A object N/A N/A 
    A joint hypothesis test that Rb = q.  Coefficient tests are essentially
    made up.  Test values taken from Stata.
     setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A R N/A N/A np array N/A N/A 0 1 1 0 0 0 0 N/A 0 1 0 1 0 0 0 N/A 0 1 0 0 0 0 0 N/A 0 0 0 0 1 0 0 N/A 0 0 0 0 0 1 0 N/A q N/A N/A np array N/A 0 0 0 1 0 N/A N/A cls Ftest1 N/A N/A res1 f_test N/A R q N/A classmethod test_fvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest1 fvalue 70.115557 5 N/A test_pvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ftest1 pvalue 6.229e-07 10 N/A test_df_denom N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest1 df_denom 9 N/A test_df_num N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ftest1 df_num 5 N/A N/A TestTtest N/A object N/A N/A 
    Test individual t-tests.  Ie., are the coefficients significantly
    different than zero.

         setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A cls res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A R N/A N/A np identity 7 N/A N/A cls Ttest N/A N/A N/A cls res1 t_test R N/A hyp x1 = 0, x2 = 0, x3 = 0, x4 = 0, x5 = 0, x6 = 0, const = 0 N/A N/A cls NewTTest N/A N/A N/A cls res1 t_test hyp N/A classmethod test_new_tvalue N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self NewTTest tvalue N/A N/A self Ttest tvalue N/A test_tvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest tvalue N/A N/A self res1 tvalues DECIMAL_4 N/A test_sd N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest sd N/A N/A self res1 bse DECIMAL_4 N/A test_pvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest pvalue N/A N/A N/A student_t sf N/A N/A np abs N/A N/A self res1 tvalues N/A N/A N/A self res1 model df_resid 2 DECIMAL_4 N/A test_df_denom N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ttest df_denom N/A N/A N/A self res1 model df_resid N/A test_effect N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest effect N/A N/A self res1 params N/A N/A TestTtest2 N/A object N/A N/A 
    Tests the hypothesis that the coefficients on POP and YEAR
    are equal.

    Results from RPy using 'car' package.
     setupClass N/A N/A cls N/A N/A N/A R N/A N/A np zeros 7 N/A N/A R N/A 4 6 N/A 1 -1 N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A N/A cls Ttest1 N/A N/A res1 t_test R N/A classmethod test_tvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest1 tvalue -4.01677546364 DECIMAL_4 N/A test_sd N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest1 sd 455.390794252 DECIMAL_4 N/A test_pvalue N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest1 pvalue N/A 2 0.00151637723809 DECIMAL_4 N/A test_df_denom N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A self Ttest1 df_denom 9 N/A test_effect N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self Ttest1 effect -1829.20256872 DECIMAL_4 N/A N/A TestGLS N/A object N/A N/A 
    These test results were obtained by replication with R.
     setupClass N/A N/A cls N/A N/A results.results_regression LongleyGls N/A data N/A N/A longley load N/A exog N/A add_constant N/A N/A np column_stack N/A N/A N/A data exog N/A N/A N/A 1 N/A N/A data exog N/A N/A N/A 4 prepend False N/A tmp_results N/A N/A N/A OLS N/A data endog exog fit N/A rho N/A N/A N/A N/A np corrcoef N/A N/A tmp_results resid N/A 1 N/A N/A tmp_results resid N/A -1 N/A 0 N/A 1 N/A order N/A toeplitz N/A N/A np arange 16 N/A sigma N/A rho order N/A GLS_results N/A N/A N/A GLS N/A data endog exog sigma sigma fit N/A N/A cls res1 GLS_results N/A N/A cls res2 N/A LongleyGls N/A N/A cls sigma sigma N/A N/A cls exog exog N/A N/A cls endog N/A data endog N/A classmethod test_aic N/A N/A self N/A N/A N/A N/A assert_approx_equal N/A N/A N/A self res1 aic 2 N/A N/A self res2 aic 3 N/A test_bic N/A N/A self N/A N/A N/A N/A assert_approx_equal N/A N/A self res1 bic N/A N/A self res2 bic 2 N/A test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 llf N/A N/A self res2 llf DECIMAL_0 N/A test_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 params N/A N/A self res2 params DECIMAL_1 N/A test_resid N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 resid N/A N/A self res2 resid DECIMAL_4 N/A test_scale N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 scale N/A N/A self res2 scale DECIMAL_4 N/A test_tvalues N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 tvalues N/A N/A self res2 tvalues DECIMAL_4 N/A test_standarderrors N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 bse N/A N/A self res2 bse DECIMAL_4 N/A test_fittedvalues N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 fittedvalues N/A N/A self res2 fittedvalues DECIMAL_4 N/A test_pvalues N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self res1 pvalues N/A N/A self res2 pvalues DECIMAL_4 N/A test_missing N/A N/A self N/A N/A N/A endog N/A N/A N/A self endog copy N/A N/A endog N/A N/A 4 7 14 N/A np nan N/A mod N/A GLS endog N/A self exog sigma N/A self sigma missing drop N/A N/A assert_equal N/A N/A N/A mod endog shape N/A 0 13 N/A N/A assert_equal N/A N/A N/A mod exog shape N/A 0 13 N/A N/A assert_equal N/A N/A mod sigma shape N/A 13 13 N/A N/A TestGLS_alt_sigma N/A CheckRegressionResults N/A N/A 
    Test that GLS with no argument is equivalent to OLS.
     setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A ols_res N/A N/A N/A OLS N/A data endog N/A data exog fit N/A gls_res N/A N/A N/A GLS N/A data endog N/A data exog fit N/A gls_res_scalar N/A GLS N/A data endog N/A data exog sigma 1 N/A N/A cls endog N/A data endog N/A N/A cls exog N/A data exog N/A N/A cls res1 gls_res N/A N/A cls res2 ols_res N/A N/A cls res3 gls_res_scalar N/A classmethod test_wrong_size_sigma_1d N/A N/A self N/A N/A N/A n N/A len N/A self endog N/A N/A assert_raises ValueError GLS N/A self endog N/A self exog sigma N/A N/A np ones N/A n 1 N/A test_wrong_size_sigma_2d N/A N/A self N/A N/A N/A n N/A len N/A self endog N/A N/A assert_raises ValueError GLS N/A self endog N/A self exog sigma N/A N/A np ones N/A N/A n 1 N/A n 1 N/A N/A TestLM N/A object N/A setupClass N/A N/A cls N/A N/A N/A X N/A N/A N/A np random randn 100 3 N/A b N/A N/A np ones N/A 3 1 N/A e N/A N/A N/A np random randn 100 1 N/A y N/A N/A N/A np dot X b e N/A N/A cls res1_full N/A N/A N/A OLS y X fit N/A N/A cls res1_restricted N/A N/A N/A OLS y N/A X N/A N/A N/A 0 fit N/A N/A cls res2_full N/A N/A N/A cls res1_full get_robustcov_results HC0 N/A N/A cls res2_restricted N/A N/A N/A cls res1_restricted get_robustcov_results HC0 N/A N/A cls X X N/A N/A cls Y y N/A classmethod test_LM_homoskedastic N/A N/A self N/A N/A N/A resid N/A N/A self res1_restricted wresid N/A n N/A N/A resid shape N/A 0 N/A X N/A self X N/A S N/A N/A N/A N/A N/A np dot resid resid n N/A N/A np dot N/A X T X n N/A Sinv N/A N/A N/A np linalg inv S N/A s N/A N/A np mean N/A X N/A resid N/A N/A N/A None 0 N/A LMstat N/A n N/A N/A np dot N/A N/A np dot s Sinv N/A s T N/A LMstat_OLS N/A N/A N/A self res1_full compare_lm_test N/A self res1_restricted N/A LMstat2 N/A LMstat_OLS N/A 0 N/A N/A assert_almost_equal LMstat LMstat2 DECIMAL_7 N/A test_LM_heteroskedastic_nodemean N/A N/A self N/A N/A N/A resid N/A N/A self res1_restricted wresid N/A n N/A N/A resid shape N/A 0 N/A X N/A self X N/A scores N/A X N/A resid N/A N/A N/A None N/A S N/A N/A N/A np dot N/A scores T scores n N/A Sinv N/A N/A N/A np linalg inv S N/A s N/A N/A np mean scores 0 N/A LMstat N/A n N/A N/A np dot N/A N/A np dot s Sinv N/A s T N/A LMstat_OLS N/A N/A N/A self res2_full compare_lm_test N/A self res2_restricted demean False N/A LMstat2 N/A LMstat_OLS N/A 0 N/A N/A assert_almost_equal LMstat LMstat2 DECIMAL_7 N/A test_LM_heteroskedastic_demean N/A N/A self N/A N/A N/A resid N/A N/A self res1_restricted wresid N/A n N/A N/A resid shape N/A 0 N/A X N/A self X N/A scores N/A X N/A resid N/A N/A N/A None N/A scores_demean N/A scores N/A N/A scores mean 0 N/A S N/A N/A N/A np dot N/A scores_demean T scores_demean n N/A Sinv N/A N/A N/A np linalg inv S N/A s N/A N/A np mean scores 0 N/A LMstat N/A n N/A N/A np dot N/A N/A np dot s Sinv N/A s T N/A LMstat_OLS N/A N/A N/A self res2_full compare_lm_test N/A self res2_restricted N/A LMstat2 N/A LMstat_OLS N/A 0 N/A N/A assert_almost_equal LMstat LMstat2 DECIMAL_7 N/A test_LM_heteroskedastic_LRversion N/A N/A self N/A N/A N/A resid N/A N/A self res1_restricted wresid N/A resid_full N/A N/A self res1_full wresid N/A n N/A N/A resid shape N/A 0 N/A X N/A self X N/A scores N/A X N/A resid N/A N/A N/A None N/A s N/A N/A np mean scores 0 N/A scores N/A X N/A resid_full N/A N/A N/A None N/A S N/A N/A N/A np dot N/A scores T scores n N/A Sinv N/A N/A N/A np linalg inv S N/A LMstat N/A n N/A N/A np dot N/A N/A np dot s Sinv N/A s T N/A LMstat_OLS N/A N/A N/A self res2_full compare_lm_test N/A self res2_restricted use_lr True N/A LMstat2 N/A LMstat_OLS N/A 0 N/A N/A assert_almost_equal LMstat LMstat2 DECIMAL_7 N/A test_LM_nonnested N/A N/A self N/A N/A N/A N/A assert_raises ValueError N/A N/A self res2_restricted compare_lm_test N/A self res2_full N/A N/A TestOLS_GLS_WLS_equivalence N/A object N/A setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A y N/A data endog N/A X N/A data exog N/A n N/A N/A y shape N/A 0 N/A w N/A N/A np ones n N/A N/A cls results N/A N/A N/A N/A N/A cls results append N/A N/A N/A OLS y X fit N/A N/A N/A N/A cls results append N/A N/A N/A WLS y X w fit N/A N/A N/A N/A cls results append N/A N/A N/A GLS y X N/A 100 w fit N/A N/A N/A N/A cls results append N/A N/A N/A GLS y X N/A N/A np diag N/A 0.1 w fit N/A classmethod test_ll N/A N/A self N/A N/A N/A llf N/A N/A np array N/A N/A r llf N/A r N/A self results N/A llf_1 N/A N/A N/A np ones_like llf N/A N/A N/A self results N/A 0 llf N/A N/A assert_almost_equal llf llf_1 DECIMAL_7 N/A ic N/A N/A np array N/A N/A r aic N/A r N/A self results N/A ic_1 N/A N/A N/A np ones_like ic N/A N/A N/A self results N/A 0 aic N/A N/A assert_almost_equal ic ic_1 DECIMAL_7 N/A ic N/A N/A np array N/A N/A r bic N/A r N/A self results N/A ic_1 N/A N/A N/A np ones_like ic N/A N/A N/A self results N/A 0 bic N/A N/A assert_almost_equal ic ic_1 DECIMAL_7 N/A test_params N/A N/A self N/A N/A N/A params N/A N/A np array N/A N/A r params N/A r N/A self results N/A params_1 N/A N/A np array N/A N/A N/A N/A N/A self results N/A 0 params N/A len N/A self results N/A N/A assert_allclose params params_1 N/A test_ss N/A N/A self N/A N/A N/A bse N/A N/A np array N/A N/A r bse N/A r N/A self results N/A bse_1 N/A N/A np array N/A N/A N/A N/A N/A self results N/A 0 bse N/A len N/A self results N/A N/A assert_allclose bse bse_1 N/A test_rsquared N/A N/A self N/A N/A N/A rsquared N/A N/A np array N/A N/A r rsquared N/A r N/A self results N/A rsquared_1 N/A N/A np array N/A N/A N/A N/A N/A self results N/A 0 rsquared N/A len N/A self results N/A N/A assert_almost_equal rsquared rsquared_1 DECIMAL_7 N/A N/A TestGLS_WLS_equivalence N/A TestOLS_GLS_WLS_equivalence N/A setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A y N/A data endog N/A X N/A data exog N/A n N/A N/A y shape N/A 0 N/A N/A N/A N/A np random seed 5 N/A w N/A N/A N/A np random uniform 0.5 1 n N/A w_inv N/A 1.0 w N/A N/A cls results N/A N/A N/A N/A N/A cls results append N/A N/A N/A WLS y X w fit N/A N/A N/A N/A cls results append N/A N/A N/A WLS y X N/A 0.01 w fit N/A N/A N/A N/A cls results append N/A N/A N/A GLS y X N/A 100 w_inv fit N/A N/A N/A N/A cls results append N/A N/A N/A GLS y X N/A N/A np diag N/A 0.1 w_inv fit N/A classmethod test_rsquared N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self results N/A 1 rsquared N/A N/A N/A self results N/A 0 rsquared DECIMAL_7 N/A N/A assert_almost_equal N/A N/A N/A self results N/A 3 rsquared N/A N/A N/A self results N/A 2 rsquared DECIMAL_7 N/A N/A TestNonFit N/A object N/A setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A cls endog N/A data endog N/A N/A cls exog N/A data exog N/A N/A cls ols_model N/A OLS N/A data endog N/A data exog N/A classmethod test_df_resid N/A N/A self N/A N/A N/A df_resid N/A N/A N/A N/A self endog shape N/A 0 N/A N/A N/A self exog shape N/A 1 N/A N/A assert_equal N/A N/A self ols_model df_resid N/A long 9 N/A N/A TestWLS_CornerCases N/A object N/A setupClass N/A N/A cls N/A N/A N/A N/A cls exog N/A N/A np ones N/A 1 N/A N/A cls endog N/A N/A np ones N/A 1 N/A weights 1 N/A N/A cls wls_res N/A N/A N/A WLS N/A cls endog N/A cls exog weights weights fit N/A classmethod test_wrong_size_weights N/A N/A self N/A N/A N/A weights N/A N/A np ones N/A 10 10 N/A N/A assert_raises ValueError WLS N/A self endog N/A self exog weights weights N/A N/A TestWLSExogWeights N/A CheckRegressionResults N/A __init__ N/A N/A self N/A N/A results.results_regression CCardWLS statsmodels.datasets.ccard load N/A dta N/A load N/A N/A dta exog N/A add_constant N/A dta exog prepend False N/A nobs 72.0 N/A weights N/A 1 N/A N/A dta exog N/A N/A N/A 2 N/A scaled_weights N/A N/A weights nobs N/A N/A weights sum N/A N/A self res1 N/A N/A N/A WLS N/A dta endog N/A dta exog weights scaled_weights fit N/A N/A self res2 N/A CCardWLS N/A N/A N/A self res2 wresid N/A N/A scaled_weights 0.5 N/A N/A self res2 resid N/A corr_ic N/A 2 N/A N/A N/A self res1 llf N/A N/A self res2 llf N/A N/A N/A self res2 aic corr_ic N/A N/A N/A self res2 bic corr_ic N/A N/A N/A self res2 llf N/A 0.5 N/A N/A np sum N/A N/A np log N/A N/A N/A self res1 model weights N/A N/A test_wls_example N/A N/A N/A N/A N/A Y N/A 1 3 4 5 2 3 4 N/A X N/A lrange 1 8 N/A X N/A add_constant X prepend False N/A wls_model N/A N/A N/A WLS Y X weights N/A lrange 1 8 fit N/A N/A assert_almost_equal N/A wls_model fvalue 0.127337843215 6 N/A N/A assert_almost_equal N/A wls_model scale N/A 2.44608530786 2 6 N/A test_wls_tss N/A N/A N/A N/A N/A y N/A N/A np array N/A 22 22 22 23 23 23 N/A X N/A N/A 1 0 N/A 1 0 N/A 1 1 N/A 0 1 N/A 0 1 N/A 0 1 N/A ols_mod N/A N/A N/A OLS y N/A add_constant X prepend False fit N/A yw N/A N/A np array N/A 22 22 23.0 N/A Xw N/A N/A 1 0 N/A 1 1 N/A 0 1 N/A w N/A N/A np array N/A 2 1 3.0 N/A wls_mod N/A N/A N/A WLS yw N/A add_constant Xw prepend False weights w fit N/A N/A assert_equal N/A ols_mod centered_tss N/A wls_mod centered_tss N/A TestWLSScalarVsArray N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A statsmodels.datasets.longley load N/A dta N/A load N/A N/A dta exog N/A add_constant N/A dta exog prepend True N/A wls_scalar N/A N/A N/A WLS N/A dta endog N/A dta exog weights N/A 1.0 3 fit N/A weights N/A N/A N/A 1 3.0 N/A len N/A dta endog N/A wls_array N/A N/A N/A WLS N/A dta endog N/A dta exog weights weights fit N/A N/A cls res1 wls_scalar N/A N/A cls res2 wls_array N/A classmethod N/A test_wls_missing N/A N/A N/A N/A statsmodels.datasets.ccard load N/A data N/A load N/A endog N/A data endog N/A N/A endog N/A N/A 10 25 N/A np nan N/A mod N/A WLS N/A data endog N/A data exog weights N/A 1 N/A N/A data exog N/A N/A N/A 2 missing drop N/A N/A assert_equal N/A N/A N/A mod endog shape N/A 0 70 N/A N/A assert_equal N/A N/A N/A mod exog shape N/A 0 70 N/A N/A assert_equal N/A N/A N/A mod weights shape N/A 0 70 N/A TestWLS_OLS N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A cls res1 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A N/A cls res2 N/A N/A N/A WLS N/A data endog N/A data exog fit N/A classmethod check_confidenceintervals N/A N/A self conf1 conf2 N/A N/A N/A N/A assert_almost_equal conf1 N/A conf2 DECIMAL_4 N/A N/A TestGLS_OLS N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A N/A data N/A N/A longley load N/A N/A data exog N/A add_constant N/A data exog prepend False N/A N/A cls res1 N/A N/A N/A GLS N/A data endog N/A data exog fit N/A N/A cls res2 N/A N/A N/A OLS N/A data endog N/A data exog fit N/A classmethod check_confidenceintervals N/A N/A self conf1 conf2 N/A N/A N/A N/A assert_almost_equal conf1 N/A conf2 DECIMAL_4 N/A N/A TestYuleWalker N/A object N/A setupClass N/A N/A cls N/A N/A statsmodels.datasets.sunspots load N/A data N/A load N/A N/A N/A cls rho N/A cls sigma N/A yule_walker N/A data endog order 4 method mle N/A N/A cls R_params N/A 1.28310031057 -0.452409243741 -0.207702985576 0.0479436480895 N/A classmethod test_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A self rho N/A self R_params DECIMAL_4 N/A N/A TestDataDimensions N/A CheckRegressionResults N/A setupClass N/A N/A cls N/A N/A N/A N/A N/A N/A np random seed 54321 N/A N/A cls endog_n_ N/A N/A N/A np random uniform 0 20 size 30 N/A N/A cls endog_n_one N/A N/A cls endog_n_ N/A N/A N/A None N/A N/A cls exog_n_ N/A N/A N/A np random uniform 0 20 size 30 N/A N/A cls exog_n_one N/A N/A cls exog_n_ N/A N/A N/A None N/A N/A cls degen_exog N/A N/A cls exog_n_one N/A -1 N/A N/A cls mod1 N/A OLS N/A cls endog_n_one N/A cls exog_n_one N/A N/A N/A cls mod1 df_model 1 N/A N/A cls res1 N/A N/A N/A cls mod1 fit N/A N/A cls mod2 N/A OLS N/A cls endog_n_one N/A cls exog_n_one N/A N/A N/A cls mod2 df_model 1 N/A N/A cls res2 N/A N/A N/A cls mod2 fit N/A classmethod check_confidenceintervals N/A N/A self conf1 conf2 N/A N/A N/A N/A assert_almost_equal conf1 N/A conf2 DECIMAL_4 N/A N/A TestGLS_large_data N/A TestDataDimensions N/A setupClass N/A N/A cls N/A N/A N/A nobs 1000 N/A y N/A N/A N/A np random randn nobs 1 N/A X N/A N/A N/A np random randn nobs 20 N/A sigma N/A N/A np ones_like y N/A N/A cls gls_res N/A N/A N/A GLS y X sigma sigma fit N/A N/A cls gls_res_scalar N/A N/A N/A GLS y X sigma 1 fit N/A N/A cls gls_res_none N/A N/A N/A GLS y X fit N/A N/A cls ols_res N/A N/A N/A OLS y X fit N/A classmethod test_large_equal_params N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self ols_res params N/A N/A self gls_res params DECIMAL_7 N/A test_large_equal_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self ols_res llf N/A N/A self gls_res llf DECIMAL_7 N/A test_large_equal_params_none N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A self gls_res params N/A N/A self gls_res_none params DECIMAL_7 N/A N/A TestNxNx N/A TestDataDimensions N/A setupClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestNxNx cls setupClass N/A N/A cls mod2 N/A OLS N/A cls endog_n_ N/A cls exog_n_ N/A N/A N/A cls mod2 df_model 1 N/A N/A cls res2 N/A N/A N/A cls mod2 fit N/A classmethod N/A TestNxOneNx N/A TestDataDimensions N/A setupClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestNxOneNx cls setupClass N/A N/A cls mod2 N/A OLS N/A cls endog_n_one N/A cls exog_n_ N/A N/A N/A cls mod2 df_model 1 N/A N/A cls res2 N/A N/A N/A cls mod2 fit N/A classmethod N/A TestNxNxOne N/A TestDataDimensions N/A setupClass N/A N/A cls N/A N/A N/A N/A N/A N/A super TestNxNxOne cls setupClass N/A N/A cls mod2 N/A OLS N/A cls endog_n_ N/A cls exog_n_one N/A N/A N/A cls mod2 df_model 1 N/A N/A cls res2 N/A N/A N/A cls mod2 fit N/A classmethod N/A test_bad_size N/A N/A N/A N/A N/A N/A N/A N/A np random seed 54321 N/A data N/A N/A N/A np random uniform 0 20 31 N/A N/A assert_raises ValueError OLS data N/A data N/A 1 N/A test_const_indicator N/A N/A N/A N/A N/A N/A N/A N/A np random seed 12345 N/A X N/A N/A N/A np random randint 0 3 size 30 N/A X N/A categorical X drop True N/A y N/A N/A N/A np dot X N/A 1.0 2.0 3.0 N/A N/A N/A np random normal size 30 N/A modc N/A N/A N/A OLS y N/A add_constant N/A X N/A N/A N/A 1 prepend True fit N/A mod N/A N/A N/A OLS y X hasconst True fit N/A N/A assert_almost_equal N/A modc rsquared N/A mod rsquared 12 N/A test_706 N/A N/A N/A N/A N/A y N/A N/A pandas Series N/A N/A N/A np random randn 10 N/A x N/A N/A pandas Series N/A N/A np ones 10 N/A res N/A N/A N/A OLS y x fit N/A conf_int N/A N/A res conf_int N/A N/A N/A N/A np testing assert_equal N/A conf_int shape N/A 1 2 N/A N/A N/A N/A np testing assert_ N/A isinstance conf_int N/A pandas DataFrame N/A test_summary N/A N/A N/A N/A N/A re N/A dta N/A N/A longley load_pandas N/A X N/A dta exog N/A N/A X N/A constant 1 N/A y N/A dta endog N/A N/A N/A warnings catch_warnings record True N/A N/A res N/A N/A N/A OLS y X fit N/A table N/A N/A N/A N/A res summary as_latex N/A table N/A N/A re sub (?<=
\\textbf\{Date:\}             &).+?&  Sun, 07 Apr 2013 & table N/A table N/A N/A re sub (?<=
\\textbf\{Time:\}             &).+?&      13:46:07     & table N/A expected \begin{center}
\begin{tabular}{lclc}
\toprule
\textbf{Dep. Variable:}    &      TOTEMP      & \textbf{  R-squared:         } &     0.995   \\
\textbf{Model:}            &       OLS        & \textbf{  Adj. R-squared:    } &     0.992   \\
\textbf{Method:}           &  Least Squares   & \textbf{  F-statistic:       } &     330.3   \\
\textbf{Date:}             & Sun, 07 Apr 2013 & \textbf{  Prob (F-statistic):} &  4.98e-10   \\
\textbf{Time:}             &     13:46:07     & \textbf{  Log-Likelihood:    } &   -109.62   \\
\textbf{No. Observations:} &          16      & \textbf{  AIC:               } &     233.2   \\
\textbf{Df Residuals:}     &           9      & \textbf{  BIC:               } &     238.6   \\
\textbf{Df Model:}         &           6      & \textbf{                     } &             \\
\bottomrule
\end{tabular}
\begin{tabular}{lcccccc}
                  & \textbf{coef} & \textbf{std err} & \textbf{t} & \textbf{P$>$$|$t$|$} & \textbf{[0.025} & \textbf{0.975]}  \\
\midrule
\textbf{GNPDEFL}  &      15.0619  &       84.915     &     0.177  &         0.863        &     -177.029    &      207.153     \\
\textbf{GNP}      &      -0.0358  &        0.033     &    -1.070  &         0.313        &       -0.112    &        0.040     \\
\textbf{UNEMP}    &      -2.0202  &        0.488     &    -4.136  &         0.003        &       -3.125    &       -0.915     \\
\textbf{ARMED}    &      -1.0332  &        0.214     &    -4.822  &         0.001        &       -1.518    &       -0.549     \\
\textbf{POP}      &      -0.0511  &        0.226     &    -0.226  &         0.826        &       -0.563    &        0.460     \\
\textbf{YEAR}     &    1829.1515  &      455.478     &     4.016  &         0.003        &      798.788    &     2859.515     \\
\textbf{constant} &   -3.482e+06  &      8.9e+05     &    -3.911  &         0.004        &     -5.5e+06    &    -1.47e+06     \\
\bottomrule
\end{tabular}
\begin{tabular}{lclc}
\textbf{Omnibus:}       &  0.749 & \textbf{  Durbin-Watson:     } &    2.559  \\
\textbf{Prob(Omnibus):} &  0.688 & \textbf{  Jarque-Bera (JB):  } &    0.684  \\
\textbf{Skew:}          &  0.420 & \textbf{  Prob(JB):          } &    0.710  \\
\textbf{Kurtosis:}      &  2.434 & \textbf{  Cond. No.          } & 4.86e+09  \\
\bottomrule
\end{tabular}
%\caption{OLS Regression Results}
\end{center} N/A N/A assert_equal table expected N/A TestRegularizedFit N/A object N/A test_empty_model N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 742 N/A n 100 N/A endog N/A N/A N/A np random normal size n N/A exog N/A N/A N/A np random normal size N/A n 3 N/A model N/A OLS endog exog N/A result N/A N/A model fit_regularized alpha 1000 N/A N/A assert_equal N/A result params 0.0 N/A N/A assert_equal N/A result bse 0.0 N/A test_regularized N/A N/A self N/A N/A N/A os N/A glmnet_r_results N/A cur_dir N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A data N/A N/A np loadtxt N/A N/A N/A os path join cur_dir results lasso_data.csv delimiter , N/A tests N/A x N/A x N/A dir glmnet_r_results N/A N/A x startswith rslt_ N/A test tests N/A N/A vec N/A getattr glmnet_r_results test N/A n N/A vec N/A 0 N/A p N/A vec N/A 1 N/A L1_wt N/A float N/A vec N/A 2 N/A lam N/A float N/A vec N/A 3 N/A params N/A N/A N/A vec N/A 4 astype N/A np float64 N/A endog N/A data N/A N/A 0 N/A int n N/A 0 N/A exog N/A data N/A N/A 0 N/A int n N/A 1 N/A N/A int p 1 N/A endog N/A endog N/A N/A endog mean N/A endog N/A N/A endog std ddof 1 N/A exog N/A exog N/A N/A exog mean 0 N/A exog N/A N/A exog std 0 ddof 1 N/A mod N/A OLS endog exog N/A rslt N/A N/A mod fit_regularized L1_wt L1_wt alpha lam N/A N/A assert_almost_equal N/A rslt params params decimal 3 N/A smry N/A N/A rslt summary N/A N/A test_formula_missing_cat N/A N/A N/A N/A N/A statsmodels.api sm statsmodels.formula.api ols patsy PatsyError N/A dta N/A N/A N/A N/A N/A sm datasets grunfeld load_pandas data N/A N/A N/A dta ix N/A N/A 0 firm N/A np nan N/A mod N/A ols formula value ~ invest + capital + firm + year data N/A N/A dta dropna N/A res N/A N/A mod fit N/A mod2 N/A ols formula value ~ invest + capital + firm + year data dta N/A res2 N/A N/A mod2 fit N/A N/A assert_almost_equal N/A N/A res params values N/A N/A res2 params values N/A N/A assert_raises PatsyError ols value ~ invest + capital + firm + year data dta missing raise N/A test_missing_formula_predict N/A N/A N/A N/A N/A nsample 30 N/A data N/A N/A pandas DataFrame N/A x N/A N/A np linspace 0 10 nsample N/A null N/A N/A pandas DataFrame N/A x N/A N/A np array N/A N/A np nan N/A data N/A N/A pandas concat N/A data null N/A beta N/A N/A np array N/A 1 0.1 N/A e N/A N/A N/A np random normal size N/A nsample 1 N/A N/A data N/A y N/A N/A N/A beta N/A 0 N/A N/A beta N/A 1 N/A data N/A x e N/A model N/A N/A OLS from_formula y ~ x data data N/A fit N/A N/A model fit N/A pred N/A N/A fit predict exog N/A data N/A -1 N/A test_fvalue_implicit_constant N/A N/A N/A N/A N/A nobs 100 N/A N/A N/A N/A np random seed 2 N/A x N/A N/A N/A np random randn nobs 1 N/A x N/A N/A N/A N/A x 0 N/A True False astype int N/A y N/A N/A N/A x sum 1 N/A N/A N/A np random randn nobs N/A w N/A 1 N/A 0.25 N/A N/A N/A np random rand nobs statsmodels.regression.linear_model OLS WLS N/A res N/A N/A N/A OLS y x fit cov_type HC1 N/A N/A assert_ N/A N/A np isnan N/A res fvalue N/A N/A assert_ N/A N/A np isnan N/A res f_pvalue N/A N/A N/A res summary N/A res N/A N/A N/A WLS y x fit cov_type HC1 N/A N/A assert_ N/A N/A np isnan N/A res fvalue N/A N/A assert_ N/A N/A np isnan N/A res f_pvalue N/A N/A N/A res summary N/A N/A N/A __name__ __main__ N/A N/A nose N/A N/A N/A nose runmodule argv N/A __file__ -vvs -x --pdb --pdb-failure exit False