Module Import alias identifier Import alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Num Num Num Assign NameStore ListLoad Num Num Num Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr keyword Num Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr keyword Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword Num keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword Num keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword NameLoad keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword NameLoad keyword Num NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad For NameStore ListLoad NameLoad NameLoad body Assign NameStore Str Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad Assign NameStore Str Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad Call NameLoad keyword Str attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call NameLoad keyword Num NameLoad NameLoad Expr Call NameLoad Call NameLoad keyword Num NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr For NameStore ListLoad Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Str Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword Str keyword Num keyword Str keyword Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr keyword Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr keyword Num Expr Call NameLoad Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body For NameStore ListLoad Str Str Str body Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Call NameLoad keyword Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad keyword Str keyword Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad keyword Str keyword Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad For NameStore ListLoad Str Str Str body Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad CompareGt AttributeLoad NameLoad attr Num attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ListLoad Str Str Index NameLoad For NameStore ListLoad Str Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword Num attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index Num Num Assign NameStore Call NameLoad keyword Num Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Assign SubscriptStore AttributeLoad NameLoad attr Slice Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad keyword Num attr NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpAdd Call AttributeLoad NameLoad attr Num Num ListLoad Num Num Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpAdd BinOpMult ListLoad Num Num BinOpMult ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore NameLoad For NameStore TupleLoad Str Str Str Str body Assign TupleStore NameStore NameStore NameStore Call Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad keyword Num keyword BinOpMod Str NameLoad For NameStore TupleLoad Str Str Str Str body Assign NameStore ListLoad Num Assign TupleStore NameStore NameStore NameStore Call Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num keyword Num keyword BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad keyword Num Index Num Num Expr Call NameLoad NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Lambda arguments args NameParam defaults SubscriptLoad Call NameLoad NameLoad NameLoad NameLoad keyword Num Index Num Num Expr Call NameLoad NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore TupleLoad NameLoad NameLoad body Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad Call NameLoad BinOpAdd NameLoad BinOpMult NameLoad NameLoad NameLoad NameLoad keyword Num Index Num comprehension NameStore NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr NameLoad Index Num attr Expr Call NameLoad NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword ListLoad Num keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num NameLoad Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num Num Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad Num Num Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad BinOpAdd NameLoad BinOpMult Num BinOpPow SubscriptLoad NameLoad Index Num Num NameLoad Expr Call NameLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Expr Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Expr Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num ExtSlice Index AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num NameLoad Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num NameLoad Num BinOpAdd NameLoad Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num NameLoad Num For NameStore ListLoad Str Str Str body Assign NameStore IfExp CompareEq NameLoad Str Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num NameLoad Num BinOpAdd NameLoad Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num NameLoad Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Num Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Str Assign NameStore Call NameLoad keyword Dict Num Num Num Num keyword Str Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num Num Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore BinOpAdd NameLoad Num For NameStore ListLoad NameLoad NameLoad body For NameStore ListLoad Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Num With Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num For NameStore ListLoad Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Dict Num Num Num Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Dict Num Num Num Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore TupleLoad Str Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Num Slice Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore TupleLoad Str Str Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad For NameStore ListLoad Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Num keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num For NameStore ListLoad Str Str Str body Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Str keyword ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Num Assign SubscriptStore NameLoad Index TupleLoad Call NameLoad Num NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad Index Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad Call NameLoad BinOpAdd NameLoad BinOpMult NameLoad NameLoad NameLoad NameLoad keyword Num keyword NameLoad Index Num comprehension NameStore NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr NameLoad Index Num attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body For NameStore ListLoad Num Num body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword ListLoad Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num Assign NameStore ListLoad Str Str Str If CompareGtE NameLoad TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Num Num body For NameStore NameLoad body For NameStore ListLoad Str Str body If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body Continue Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword NameLoad keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num Assign NameStore Num Assign NameStore Num For NameStore ListLoad Str Str Str Str body Assign NameStore IfExp CompareEq NameLoad Str Num SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Num Assign NameStore Call NameLoad keyword Num keyword Str keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Num Assign NameStore Call NameLoad keyword Num keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num NameLoad NameLoad Assign NameStore Num If CompareIn NameLoad TupleLoad Str Str body Break Assign NameStore Call NameLoad keyword Num keyword Str keyword NameLoad keyword Num keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str If CompareGtE NameLoad TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Str For NameStore ListLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body For NameStore NameLoad body For NameStore ListLoad Str Str body Assign NameStore Call NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num With Call NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If NameLoad body Expr Call NameLoad Num NameLoad NameLoad orelse Expr Call NameLoad NameLoad Num NameLoad decorator_list NameLoad
N/A N/A numpy np N/A scipy.sparse sp scipy linalg optimize sparse sklearn.utils.testing assert_almost_equal sklearn.utils.testing assert_array_equal sklearn.utils.testing assert_array_almost_equal sklearn.utils.testing assert_equal sklearn.utils.testing assert_greater sklearn.utils.testing assert_raises sklearn.utils.testing assert_true sklearn.utils.testing assert_warns sklearn.utils.testing assert_warns_message sklearn.utils.testing raises sklearn.utils.testing ignore_warnings sklearn.utils.testing assert_raise_message sklearn.exceptions ConvergenceWarning sklearn.utils compute_class_weight sklearn.utils.fixes sp_version sklearn.linear_model.logistic LogisticRegression logistic_regression_path LogisticRegressionCV _logistic_loss_and_grad _logistic_grad_hess _multinomial_grad_hess _logistic_loss sklearn.model_selection StratifiedKFold sklearn.datasets load_iris make_classification sklearn.metrics log_loss N/A X N/A N/A -1 0 N/A 0 1 N/A 1 1 N/A X_sp N/A N/A sp csr_matrix X N/A Y1 N/A 0 1 1 N/A Y2 N/A 2 1 0 N/A iris N/A load_iris check_predictions N/A N/A clf X y N/A N/A N/A Check that the model is able to fit the classification data N/A n_samples N/A len y N/A classes N/A N/A np unique y N/A n_classes N/A N/A classes shape N/A 0 N/A predicted N/A N/A N/A N/A clf fit X y predict X N/A N/A assert_array_equal N/A clf classes_ classes N/A N/A assert_equal N/A predicted shape N/A n_samples N/A N/A assert_array_equal predicted y N/A probabilities N/A N/A clf predict_proba X N/A N/A assert_equal N/A probabilities shape N/A n_samples n_classes N/A N/A assert_array_almost_equal N/A N/A probabilities sum axis 1 N/A N/A np ones n_samples N/A N/A assert_array_equal N/A N/A probabilities argmax axis 1 y N/A test_predict_2_classes N/A N/A N/A N/A N/A N/A check_predictions N/A LogisticRegression random_state 0 X Y1 N/A N/A check_predictions N/A LogisticRegression random_state 0 X_sp Y1 N/A N/A check_predictions N/A LogisticRegression C 100 random_state 0 X Y1 N/A N/A check_predictions N/A LogisticRegression C 100 random_state 0 X_sp Y1 N/A N/A check_predictions N/A LogisticRegression fit_intercept False random_state 0 X Y1 N/A N/A check_predictions N/A LogisticRegression fit_intercept False random_state 0 X_sp Y1 N/A test_error N/A N/A N/A N/A N/A msg Penalty term must be positive N/A N/A assert_raise_message ValueError msg N/A N/A LogisticRegression C -1 fit X Y1 N/A N/A assert_raise_message ValueError msg N/A N/A LogisticRegression C test fit X Y1 N/A LR N/A LogisticRegression LogisticRegressionCV N/A N/A msg Tolerance for stopping criteria must be positive N/A N/A assert_raise_message ValueError msg N/A N/A LR tol -1 fit X Y1 N/A N/A assert_raise_message ValueError msg N/A N/A LR tol test fit X Y1 N/A msg Maximum number of iteration must be positive N/A N/A assert_raise_message ValueError msg N/A N/A LR max_iter -1 fit X Y1 N/A N/A assert_raise_message ValueError msg N/A N/A LR max_iter test fit X Y1 N/A test_predict_3_classes N/A N/A N/A N/A N/A N/A check_predictions N/A LogisticRegression C 10 X Y2 N/A N/A check_predictions N/A LogisticRegression C 10 X_sp Y2 N/A test_predict_iris N/A N/A N/A N/A N/A N/A n_samples n_features N/A N/A iris data shape N/A target N/A N/A iris target_names N/A N/A iris target N/A clf N/A N/A LogisticRegression C N/A len N/A iris data N/A LogisticRegression C N/A len N/A iris data solver lbfgs multi_class multinomial N/A LogisticRegression C N/A len N/A iris data solver newton-cg multi_class multinomial N/A LogisticRegression C N/A len N/A iris data solver sag tol 0.01 multi_class ovr random_state 42 N/A N/A N/A N/A clf fit N/A iris data target N/A N/A assert_array_equal N/A N/A np unique target N/A clf classes_ N/A pred N/A N/A clf predict N/A iris data N/A N/A assert_greater N/A N/A np mean N/A pred target 0.95 N/A probabilities N/A N/A clf predict_proba N/A iris data N/A N/A assert_array_almost_equal N/A N/A probabilities sum axis 1 N/A N/A np ones n_samples N/A pred N/A N/A iris target_names N/A N/A N/A probabilities argmax axis 1 N/A N/A assert_greater N/A N/A np mean N/A pred target 0.95 N/A test_multinomial_validation N/A N/A N/A N/A N/A solver N/A lbfgs newton-cg sag N/A N/A lr N/A LogisticRegression C -1 solver solver multi_class multinomial N/A N/A assert_raises ValueError N/A lr fit N/A N/A 0 1 N/A 1 0 N/A 0 1 N/A test_check_solver_option N/A N/A N/A N/A N/A N/A X y N/A N/A iris data N/A iris target N/A LR N/A LogisticRegression LogisticRegressionCV N/A N/A msg Logistic Regression supports only liblinear, newton-cg, lbfgs and sag solvers, got wrong_name N/A lr N/A LR solver wrong_name N/A N/A assert_raise_message ValueError msg N/A lr fit X y N/A msg multi_class should be either multinomial or ovr, got wrong_name N/A lr N/A LR solver newton-cg multi_class wrong_name N/A N/A assert_raise_message ValueError msg N/A lr fit X y N/A msg Solver liblinear does not support a multinomial backend. N/A lr N/A LR solver liblinear multi_class multinomial N/A N/A assert_raise_message ValueError msg N/A lr fit X y N/A solver N/A newton-cg lbfgs sag N/A N/A msg N/A Solver %s supports only l2 penalties, got l1 penalty. solver N/A lr N/A LR solver solver penalty l1 N/A N/A assert_raise_message ValueError msg N/A lr fit X y N/A msg N/A Solver %s supports only dual=False, got dual=True solver N/A lr N/A LR solver solver dual True N/A N/A assert_raise_message ValueError msg N/A lr fit X y N/A test_multinomial_binary N/A N/A N/A N/A N/A target N/A N/A N/A N/A iris target 0 astype N/A np intp N/A target N/A N/A N/A np array N/A setosa not-setosa N/A target N/A solver N/A lbfgs newton-cg sag N/A N/A clf N/A LogisticRegression solver solver multi_class multinomial random_state 42 max_iter 2000 N/A N/A N/A clf fit N/A iris data target N/A N/A assert_equal N/A N/A clf coef_ shape N/A 1 N/A N/A N/A iris data shape N/A 1 N/A N/A assert_equal N/A N/A clf intercept_ shape N/A 1 N/A N/A assert_array_equal N/A N/A clf predict N/A iris data target N/A mlr N/A LogisticRegression solver solver multi_class multinomial random_state 42 fit_intercept False N/A N/A N/A mlr fit N/A iris data target N/A pred N/A N/A clf classes_ N/A N/A N/A np argmax N/A N/A clf predict_log_proba N/A iris data axis 1 N/A N/A assert_greater N/A N/A np mean N/A pred target 0.9 N/A test_sparsify N/A N/A N/A N/A N/A N/A n_samples n_features N/A N/A iris data shape N/A target N/A N/A iris target_names N/A N/A iris target N/A clf N/A N/A N/A LogisticRegression random_state 0 fit N/A iris data target N/A pred_d_d N/A N/A clf decision_function N/A iris data N/A N/A N/A clf sparsify N/A N/A assert_true N/A N/A sp issparse N/A clf coef_ N/A pred_s_d N/A N/A clf decision_function N/A iris data N/A sp_data N/A N/A sp coo_matrix N/A iris data N/A pred_s_s N/A N/A clf decision_function sp_data N/A N/A N/A clf densify N/A pred_d_s N/A N/A clf decision_function sp_data N/A N/A assert_array_almost_equal pred_d_d pred_s_d N/A N/A assert_array_almost_equal pred_d_d pred_s_s N/A N/A assert_array_almost_equal pred_d_d pred_d_s N/A test_inconsistent_input N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A X_ N/A N/A rng random_sample N/A 5 10 N/A y_ N/A N/A np ones N/A N/A X_ shape N/A 0 N/A N/A y_ N/A 0 0 N/A clf N/A LogisticRegression random_state 0 N/A y_wrong N/A y_ N/A -1 N/A N/A assert_raises ValueError N/A clf fit X y_wrong N/A N/A assert_raises ValueError N/A N/A N/A clf fit X_ y_ predict N/A N/A rng random_sample N/A 3 12 N/A test_write_parameters N/A N/A N/A N/A N/A clf N/A LogisticRegression random_state 0 N/A N/A N/A clf fit X Y1 N/A N/A N/A clf coef_ N/A 0 N/A N/A N/A clf intercept_ N/A 0 N/A N/A assert_array_almost_equal N/A N/A clf decision_function X 0 N/A test_nan N/A N/A N/A N/A N/A Xnan N/A N/A np array X dtype N/A np float64 N/A N/A Xnan N/A N/A 0 1 N/A np nan N/A N/A N/A N/A LogisticRegression random_state 0 fit Xnan Y1 N/A N/A raises ValueError test_consistency_path N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A X N/A N/A np concatenate N/A N/A N/A N/A rng randn 100 2 N/A 1 1 N/A N/A rng randn 100 2 N/A y N/A N/A N/A 1 100 N/A N/A -1 100 N/A Cs N/A N/A np logspace 0 4 10 N/A f ignore_warnings N/A solver N/A lbfgs newton-cg liblinear sag N/A N/A N/A coefs Cs _ N/A N/A f logistic_regression_path X y Cs Cs fit_intercept False tol 1e-05 solver solver random_state 0 N/A N/A i C N/A enumerate Cs N/A N/A lr N/A LogisticRegression C C fit_intercept False tol 1e-05 random_state 0 N/A N/A N/A lr fit X y N/A lr_coef N/A N/A N/A lr coef_ ravel N/A N/A assert_array_almost_equal lr_coef N/A coefs N/A i decimal 4 err_msg N/A with solver = %s solver N/A solver N/A lbfgs newton-cg liblinear sag N/A N/A Cs N/A 1000.0 N/A N/A coefs Cs _ N/A N/A f logistic_regression_path X y Cs Cs fit_intercept True tol 1e-06 solver solver intercept_scaling 10000.0 random_state 0 N/A lr N/A LogisticRegression C N/A Cs N/A 0 fit_intercept True tol 0.0001 intercept_scaling 10000.0 random_state 0 N/A N/A N/A lr fit X y N/A lr_coef N/A N/A np concatenate N/A N/A N/A N/A lr coef_ ravel N/A lr intercept_ N/A N/A assert_array_almost_equal lr_coef N/A coefs N/A 0 decimal 4 err_msg N/A with solver = %s solver N/A test_liblinear_dual_random_state N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 N/A lr1 N/A LogisticRegression random_state 0 dual True max_iter 1 tol 1e-15 N/A N/A N/A lr1 fit X y N/A lr2 N/A LogisticRegression random_state 0 dual True max_iter 1 tol 1e-15 N/A N/A N/A lr2 fit X y N/A lr3 N/A LogisticRegression random_state 8 dual True max_iter 1 tol 1e-15 N/A N/A N/A lr3 fit X y N/A N/A assert_array_almost_equal N/A lr1 coef_ N/A lr2 coef_ N/A msg Arrays are not almost equal to 6 decimals N/A N/A assert_raise_message AssertionError msg assert_array_almost_equal N/A lr1 coef_ N/A lr3 coef_ N/A test_logistic_loss_and_grad N/A N/A N/A N/A N/A N/A X_ref y N/A make_classification n_samples 20 N/A n_features N/A N/A X_ref shape N/A 1 N/A X_sp N/A N/A X_ref copy N/A N/A X_sp N/A N/A X_sp 0.1 0 N/A X_sp N/A N/A sp csr_matrix X_sp N/A X N/A X_ref X_sp N/A N/A w N/A N/A np zeros n_features N/A N/A loss grad N/A _logistic_loss_and_grad w X y alpha 1.0 N/A approx_grad N/A N/A optimize approx_fprime w N/A N/A N/A w N/A N/A N/A _logistic_loss_and_grad w X y alpha 1.0 N/A 0 0.001 N/A N/A assert_array_almost_equal grad approx_grad decimal 2 N/A w N/A N/A np zeros N/A n_features 1 N/A N/A loss_interp grad_interp N/A _logistic_loss_and_grad w X y alpha 1.0 N/A N/A assert_array_almost_equal loss loss_interp N/A approx_grad N/A N/A optimize approx_fprime w N/A N/A N/A w N/A N/A N/A _logistic_loss_and_grad w X y alpha 1.0 N/A 0 0.001 N/A N/A assert_array_almost_equal grad_interp approx_grad decimal 2 N/A test_logistic_grad_hess N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_samples n_features N/A 50 5 N/A X_ref N/A N/A rng randn n_samples n_features N/A y N/A N/A np sign N/A N/A X_ref dot N/A 5 N/A N/A rng randn n_features N/A X_ref N/A N/A X_ref mean N/A X_ref N/A N/A X_ref std N/A X_sp N/A N/A X_ref copy N/A N/A X_sp N/A N/A X_sp 0.1 0 N/A X_sp N/A N/A sp csr_matrix X_sp N/A X N/A X_ref X_sp N/A N/A w N/A 0.1 N/A N/A np ones n_features N/A N/A loss grad N/A _logistic_loss_and_grad w X y alpha 1.0 N/A N/A grad_2 hess N/A _logistic_grad_hess w X y alpha 1.0 N/A N/A assert_array_almost_equal grad grad_2 N/A vector N/A N/A np zeros_like grad N/A N/A vector N/A 1 1 N/A hess_col N/A hess vector N/A e 0.001 N/A d_x N/A N/A np linspace N/A e e 30 N/A d_grad N/A N/A np array N/A N/A N/A _logistic_loss_and_grad N/A w N/A t vector X y alpha 1.0 N/A 1 N/A t d_x N/A d_grad N/A N/A d_grad mean axis 0 N/A approx_hess_col N/A N/A N/A N/A N/A linalg lstsq N/A d_x N/A N/A N/A N/A np newaxis d_grad N/A 0 ravel N/A N/A assert_array_almost_equal approx_hess_col hess_col decimal 3 N/A w N/A N/A np zeros N/A n_features 1 N/A N/A loss_interp grad_interp N/A _logistic_loss_and_grad w X y alpha 1.0 N/A loss_interp_2 N/A _logistic_loss w X y alpha 1.0 N/A N/A grad_interp_2 hess N/A _logistic_grad_hess w X y alpha 1.0 N/A N/A assert_array_almost_equal loss_interp loss_interp_2 N/A N/A assert_array_almost_equal grad_interp grad_interp_2 N/A test_logistic_cv N/A N/A N/A N/A N/A N/A n_samples n_features N/A 50 5 N/A rng N/A N/A N/A np random RandomState 0 N/A X_ref N/A N/A rng randn n_samples n_features N/A y N/A N/A np sign N/A N/A X_ref dot N/A 5 N/A N/A rng randn n_features N/A X_ref N/A N/A X_ref mean N/A X_ref N/A N/A X_ref std N/A lr_cv N/A LogisticRegressionCV Cs N/A 1.0 fit_intercept False solver liblinear N/A N/A N/A lr_cv fit X_ref y N/A lr N/A LogisticRegression C 1.0 fit_intercept False N/A N/A N/A lr fit X_ref y N/A N/A assert_array_almost_equal N/A lr coef_ N/A lr_cv coef_ N/A N/A assert_array_equal N/A N/A lr_cv coef_ shape N/A 1 n_features N/A N/A assert_array_equal N/A lr_cv classes_ N/A -1 1 N/A N/A assert_equal N/A len N/A lr_cv classes_ 2 N/A coefs_paths N/A N/A np asarray N/A list N/A N/A N/A lr_cv coefs_paths_ values N/A N/A assert_array_equal N/A coefs_paths shape N/A 1 3 1 n_features N/A N/A assert_array_equal N/A N/A lr_cv Cs_ shape N/A 1 N/A scores N/A N/A np asarray N/A list N/A N/A N/A lr_cv scores_ values N/A N/A assert_array_equal N/A scores shape N/A 1 3 1 N/A test_logistic_cv_sparse N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 50 n_features 5 random_state 0 N/A N/A X N/A N/A X 1.0 0.0 N/A csr N/A N/A sp csr_matrix X N/A clf N/A LogisticRegressionCV fit_intercept True N/A N/A N/A clf fit X y N/A clfs N/A LogisticRegressionCV fit_intercept True N/A N/A N/A clfs fit csr y N/A N/A assert_array_almost_equal N/A clfs coef_ N/A clf coef_ N/A N/A assert_array_almost_equal N/A clfs intercept_ N/A clf intercept_ N/A N/A assert_equal N/A clfs C_ N/A clf C_ N/A test_intercept_logistic_helper N/A N/A N/A N/A N/A N/A n_samples n_features N/A 10 5 N/A N/A X y N/A make_classification n_samples n_samples n_features n_features random_state 0 N/A alpha 1.0 N/A w N/A N/A np ones N/A n_features 1 N/A N/A grad_interp hess_interp N/A _logistic_grad_hess w X y alpha N/A loss_interp N/A _logistic_loss w X y alpha N/A X_ N/A N/A np hstack N/A X N/A N/A N/A np ones 10 N/A N/A N/A N/A np newaxis N/A N/A grad hess N/A _logistic_grad_hess w X_ y alpha N/A loss N/A _logistic_loss w X_ y alpha N/A N/A assert_almost_equal N/A loss_interp N/A 0.5 N/A N/A w N/A -1 2 loss N/A N/A assert_array_almost_equal N/A grad_interp N/A n_features N/A grad N/A n_features N/A N/A assert_almost_equal N/A N/A grad_interp N/A -1 N/A alpha N/A w N/A -1 N/A grad N/A -1 N/A rng N/A N/A N/A np random RandomState 0 N/A grad N/A N/A rng rand N/A n_features 1 N/A hess_interp N/A hess_interp grad N/A hess N/A hess grad N/A N/A assert_array_almost_equal N/A hess_interp N/A n_features N/A hess N/A n_features N/A N/A assert_almost_equal N/A N/A hess_interp N/A -1 N/A alpha N/A grad N/A -1 N/A hess N/A -1 N/A test_ovr_multinomial_iris N/A N/A N/A N/A N/A N/A train target N/A N/A iris data N/A iris target N/A N/A n_samples n_features N/A train shape N/A n_cv 2 N/A cv N/A StratifiedKFold n_cv N/A precomputed_folds N/A list N/A N/A cv split train target N/A clf N/A LogisticRegressionCV cv precomputed_folds N/A N/A N/A clf fit train target N/A clf1 N/A LogisticRegressionCV cv precomputed_folds N/A target_copy N/A N/A target copy N/A N/A target_copy N/A N/A target_copy 0 1 N/A N/A N/A clf1 fit train target_copy N/A N/A assert_array_almost_equal N/A N/A clf scores_ N/A 2 N/A N/A clf1 scores_ N/A 2 N/A N/A assert_array_almost_equal N/A N/A clf intercept_ N/A 2 N/A clf1 intercept_ N/A N/A assert_array_almost_equal N/A N/A N/A clf coef_ N/A 2 N/A N/A N/A np newaxis N/A N/A clf1 coef_ N/A N/A assert_equal N/A N/A clf coef_ shape N/A 3 n_features N/A N/A assert_array_equal N/A clf classes_ N/A 0 1 2 N/A coefs_paths N/A N/A np asarray N/A list N/A N/A N/A clf coefs_paths_ values N/A N/A assert_array_almost_equal N/A coefs_paths shape N/A 3 n_cv 10 N/A n_features 1 N/A N/A assert_equal N/A N/A clf Cs_ shape N/A 10 N/A scores N/A N/A np asarray N/A list N/A N/A N/A clf scores_ values N/A N/A assert_equal N/A scores shape N/A 3 n_cv 10 N/A solver N/A lbfgs newton-cg sag N/A N/A max_iter N/A N/A solver sag 100 15 N/A clf_multi N/A LogisticRegressionCV solver solver multi_class multinomial max_iter max_iter random_state 42 tol 0.01 cv 2 N/A N/A N/A clf_multi fit train target N/A multi_score N/A N/A clf_multi score train target N/A ovr_score N/A N/A clf score train target N/A N/A assert_greater multi_score ovr_score N/A N/A assert_equal N/A N/A clf coef_ shape N/A N/A clf_multi coef_ shape N/A N/A assert_array_equal N/A clf_multi classes_ N/A 0 1 2 N/A coefs_paths N/A N/A np asarray N/A list N/A N/A N/A clf_multi coefs_paths_ values N/A N/A assert_array_almost_equal N/A coefs_paths shape N/A 3 n_cv 10 N/A n_features 1 N/A N/A assert_equal N/A N/A clf_multi Cs_ shape N/A 10 N/A scores N/A N/A np asarray N/A list N/A N/A N/A clf_multi scores_ values N/A N/A assert_equal N/A scores shape N/A 3 n_cv 10 N/A test_logistic_regression_solvers N/A N/A N/A N/A N/A N/A X y N/A make_classification n_features 10 n_informative 5 random_state 0 N/A ncg N/A LogisticRegression solver newton-cg fit_intercept False N/A lbf N/A LogisticRegression solver lbfgs fit_intercept False N/A lib N/A LogisticRegression fit_intercept False N/A sag N/A LogisticRegression solver sag fit_intercept False random_state 42 N/A N/A N/A ncg fit X y N/A N/A N/A lbf fit X y N/A N/A N/A sag fit X y N/A N/A N/A lib fit X y N/A N/A assert_array_almost_equal N/A ncg coef_ N/A lib coef_ decimal 3 N/A N/A assert_array_almost_equal N/A lib coef_ N/A lbf coef_ decimal 3 N/A N/A assert_array_almost_equal N/A ncg coef_ N/A lbf coef_ decimal 3 N/A N/A assert_array_almost_equal N/A sag coef_ N/A lib coef_ decimal 3 N/A N/A assert_array_almost_equal N/A sag coef_ N/A ncg coef_ decimal 3 N/A N/A assert_array_almost_equal N/A sag coef_ N/A lbf coef_ decimal 3 N/A test_logistic_regression_solvers_multiclass N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 20 n_informative 10 n_classes 3 random_state 0 N/A tol 1e-06 N/A ncg N/A LogisticRegression solver newton-cg fit_intercept False tol tol N/A lbf N/A LogisticRegression solver lbfgs fit_intercept False tol tol N/A lib N/A LogisticRegression fit_intercept False tol tol N/A sag N/A LogisticRegression solver sag fit_intercept False tol tol max_iter 1000 random_state 42 N/A N/A N/A ncg fit X y N/A N/A N/A lbf fit X y N/A N/A N/A sag fit X y N/A N/A N/A lib fit X y N/A N/A assert_array_almost_equal N/A ncg coef_ N/A lib coef_ decimal 4 N/A N/A assert_array_almost_equal N/A lib coef_ N/A lbf coef_ decimal 4 N/A N/A assert_array_almost_equal N/A ncg coef_ N/A lbf coef_ decimal 4 N/A N/A assert_array_almost_equal N/A sag coef_ N/A lib coef_ decimal 4 N/A N/A assert_array_almost_equal N/A sag coef_ N/A ncg coef_ decimal 4 N/A N/A assert_array_almost_equal N/A sag coef_ N/A lbf coef_ decimal 4 N/A test_logistic_regressioncv_class_weights N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 20 n_informative 10 n_classes 3 random_state 0 N/A msg In LogisticRegressionCV the liblinear solver cannot handle multiclass with class_weight of type dict. Use the lbfgs, newton-cg or sag solvers or set class_weight='balanced' N/A clf_lib N/A LogisticRegressionCV class_weight N/A 0 1 0.1 0.2 solver liblinear N/A N/A assert_raise_message ValueError msg N/A clf_lib fit X y N/A y_ N/A N/A y copy N/A N/A y_ N/A N/A y 2 1 N/A N/A N/A clf_lib fit X y_ N/A N/A assert_array_equal N/A clf_lib classes_ N/A 0 1 N/A N/A X y N/A make_classification n_samples 20 n_features 20 n_informative 10 random_state 0 N/A clf_lbf N/A LogisticRegressionCV solver lbfgs fit_intercept False class_weight balanced N/A N/A N/A clf_lbf fit X y N/A clf_lib N/A LogisticRegressionCV solver liblinear fit_intercept False class_weight balanced N/A N/A N/A clf_lib fit X y N/A clf_sag N/A LogisticRegressionCV solver sag fit_intercept False class_weight balanced max_iter 2000 N/A N/A N/A clf_sag fit X y N/A N/A assert_array_almost_equal N/A clf_lib coef_ N/A clf_lbf coef_ decimal 4 N/A N/A assert_array_almost_equal N/A clf_sag coef_ N/A clf_lbf coef_ decimal 4 N/A N/A assert_array_almost_equal N/A clf_lib coef_ N/A clf_sag coef_ decimal 4 N/A test_logistic_regression_sample_weights N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 5 n_informative 3 n_classes 2 random_state 0 N/A sample_weight N/A y 1 N/A LR N/A LogisticRegression LogisticRegressionCV N/A N/A solver N/A lbfgs liblinear N/A N/A clf_sw_none N/A LR solver solver fit_intercept False N/A N/A N/A clf_sw_none fit X y N/A clf_sw_ones N/A LR solver solver fit_intercept False N/A N/A N/A clf_sw_ones fit X y sample_weight N/A N/A np ones N/A N/A y shape N/A 0 N/A N/A assert_array_almost_equal N/A clf_sw_none coef_ N/A clf_sw_ones coef_ decimal 4 N/A clf_sw_lbfgs N/A LR solver lbfgs fit_intercept False N/A N/A N/A clf_sw_lbfgs fit X y sample_weight sample_weight N/A clf_sw_n N/A LR solver newton-cg fit_intercept False N/A N/A N/A clf_sw_n fit X y sample_weight sample_weight N/A clf_sw_sag N/A LR solver sag fit_intercept False tol 1e-10 N/A N/A ignore_warnings N/A N/A N/A N/A clf_sw_sag fit X y sample_weight sample_weight N/A clf_sw_liblinear N/A LR solver liblinear fit_intercept False N/A N/A N/A clf_sw_liblinear fit X y sample_weight sample_weight N/A N/A assert_array_almost_equal N/A clf_sw_lbfgs coef_ N/A clf_sw_n coef_ decimal 4 N/A N/A assert_array_almost_equal N/A clf_sw_lbfgs coef_ N/A clf_sw_sag coef_ decimal 4 N/A N/A assert_array_almost_equal N/A clf_sw_lbfgs coef_ N/A clf_sw_liblinear coef_ decimal 4 N/A solver N/A lbfgs liblinear N/A N/A clf_cw_12 N/A LR solver solver fit_intercept False class_weight N/A 0 1 1 2 N/A N/A N/A clf_cw_12 fit X y N/A clf_sw_12 N/A LR solver solver fit_intercept False N/A N/A N/A clf_sw_12 fit X y sample_weight sample_weight N/A N/A assert_array_almost_equal N/A clf_cw_12 coef_ N/A clf_sw_12 coef_ decimal 4 N/A clf_cw N/A LogisticRegression solver liblinear fit_intercept False class_weight N/A 0 1 1 2 penalty l1 N/A N/A N/A clf_cw fit X y N/A clf_sw N/A LogisticRegression solver liblinear fit_intercept False penalty l1 N/A N/A N/A clf_sw fit X y sample_weight N/A N/A assert_array_almost_equal N/A clf_cw coef_ N/A clf_sw coef_ decimal 4 N/A clf_cw N/A LogisticRegression solver liblinear fit_intercept False class_weight N/A 0 1 1 2 penalty l2 dual True N/A N/A N/A clf_cw fit X y N/A clf_sw N/A LogisticRegression solver liblinear fit_intercept False penalty l2 dual True N/A N/A N/A clf_sw fit X y sample_weight N/A N/A assert_array_almost_equal N/A clf_cw coef_ N/A clf_sw coef_ decimal 4 N/A _compute_class_weight_dictionary N/A N/A y N/A N/A N/A classes N/A N/A np unique y N/A class_weight N/A compute_class_weight balanced classes y N/A class_weight_dict N/A dict N/A zip classes class_weight N/A class_weight_dict N/A test_logistic_regression_class_weights N/A N/A N/A N/A N/A X N/A N/A iris data N/A N/A 45 N/A N/A y N/A N/A iris target N/A 45 N/A solvers N/A lbfgs newton-cg N/A class_weight_dict N/A _compute_class_weight_dictionary y N/A solver solvers N/A N/A clf1 N/A LogisticRegression solver solver multi_class multinomial class_weight balanced N/A clf2 N/A LogisticRegression solver solver multi_class multinomial class_weight class_weight_dict N/A N/A N/A clf1 fit X y N/A N/A N/A clf2 fit X y N/A N/A assert_array_almost_equal N/A clf1 coef_ N/A clf2 coef_ decimal 4 N/A X N/A N/A iris data N/A N/A 45 100 N/A N/A y N/A N/A iris target N/A 45 100 N/A solvers N/A lbfgs newton-cg liblinear N/A class_weight_dict N/A _compute_class_weight_dictionary y N/A solver solvers N/A N/A clf1 N/A LogisticRegression solver solver multi_class ovr class_weight balanced N/A clf2 N/A LogisticRegression solver solver multi_class ovr class_weight class_weight_dict N/A N/A N/A clf1 fit X y N/A N/A N/A clf2 fit X y N/A N/A assert_array_almost_equal N/A clf1 coef_ N/A clf2 coef_ decimal 6 N/A test_multinomial_logistic_regression_with_classweight_auto N/A N/A N/A N/A N/A N/A X y N/A N/A iris data N/A iris target N/A model N/A LogisticRegression multi_class multinomial class_weight auto solver lbfgs N/A N/A assert_warns_message DeprecationWarning class_weight='auto' heuristic is deprecated N/A model fit X y N/A test_logistic_regression_convergence_warnings N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 20 N/A clf_lib N/A LogisticRegression solver liblinear max_iter 2 verbose 1 N/A N/A assert_warns ConvergenceWarning N/A clf_lib fit X y N/A N/A assert_equal N/A clf_lib n_iter_ 2 N/A test_logistic_regression_multinomial N/A N/A N/A N/A N/A N/A n_samples n_features n_classes N/A 50 20 3 N/A N/A X y N/A make_classification n_samples n_samples n_features n_features n_informative 10 n_classes n_classes random_state 0 N/A solver lbfgs N/A ref_i N/A LogisticRegression solver solver multi_class multinomial N/A ref_w N/A LogisticRegression solver solver multi_class multinomial fit_intercept False N/A N/A N/A ref_i fit X y N/A N/A N/A ref_w fit X y N/A N/A assert_array_equal N/A N/A ref_i coef_ shape N/A n_classes n_features N/A N/A assert_array_equal N/A N/A ref_w coef_ shape N/A n_classes n_features N/A solver N/A sag newton-cg N/A N/A clf_i N/A LogisticRegression solver solver multi_class multinomial random_state 42 max_iter 1000 tol 1e-06 N/A clf_w N/A LogisticRegression solver solver multi_class multinomial random_state 42 max_iter 1000 tol 1e-06 fit_intercept False N/A N/A N/A clf_i fit X y N/A N/A N/A clf_w fit X y N/A N/A assert_array_equal N/A N/A clf_i coef_ shape N/A n_classes n_features N/A N/A assert_array_equal N/A N/A clf_w coef_ shape N/A n_classes n_features N/A N/A assert_almost_equal N/A ref_i coef_ N/A clf_i coef_ decimal 3 N/A N/A assert_almost_equal N/A ref_w coef_ N/A clf_w coef_ decimal 3 N/A N/A assert_almost_equal N/A ref_i intercept_ N/A clf_i intercept_ decimal 3 N/A solver N/A lbfgs newton-cg sag N/A N/A clf_path N/A LogisticRegressionCV solver solver max_iter 2000 tol 1e-06 multi_class multinomial Cs N/A 1.0 N/A N/A N/A clf_path fit X y N/A N/A assert_array_almost_equal N/A clf_path coef_ N/A ref_i coef_ decimal 3 N/A N/A assert_almost_equal N/A clf_path intercept_ N/A ref_i intercept_ decimal 3 N/A test_multinomial_grad_hess N/A N/A N/A N/A N/A rng N/A N/A N/A np random RandomState 0 N/A N/A n_samples n_features n_classes N/A 100 5 3 N/A X N/A N/A rng randn n_samples n_features N/A w N/A N/A rng rand n_classes n_features N/A Y N/A N/A np zeros N/A n_samples n_classes N/A ind N/A N/A np argmax N/A N/A np dot X N/A w T axis 1 N/A N/A Y N/A N/A N/A range 0 n_samples ind 1 N/A w N/A N/A w ravel N/A sample_weights N/A N/A np ones N/A N/A X shape N/A 0 N/A N/A grad hessp N/A _multinomial_grad_hess w X Y alpha 1.0 sample_weight sample_weights N/A vec N/A N/A np zeros N/A n_features n_classes N/A N/A vec N/A 0 1 N/A hess_col N/A hessp vec N/A e 0.001 N/A d_x N/A N/A np linspace N/A e e 30 N/A d_grad N/A N/A np array N/A N/A N/A _multinomial_grad_hess N/A w N/A t vec X Y alpha 1.0 sample_weight sample_weights N/A 0 N/A t d_x N/A d_grad N/A N/A d_grad mean axis 0 N/A approx_hess_col N/A N/A N/A N/A N/A linalg lstsq N/A d_x N/A N/A N/A N/A np newaxis d_grad N/A 0 ravel N/A N/A assert_array_almost_equal hess_col approx_hess_col N/A test_liblinear_decision_function_zero N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 5 n_features 5 N/A clf N/A LogisticRegression fit_intercept False N/A N/A N/A clf fit X y N/A X N/A N/A np zeros N/A 5 5 N/A N/A assert_array_equal N/A N/A clf predict X N/A N/A np zeros 5 N/A test_liblinear_logregcv_sparse N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 10 n_features 5 N/A clf N/A LogisticRegressionCV solver liblinear N/A N/A N/A clf fit N/A N/A sparse csr_matrix X y N/A test_logreg_intercept_scaling N/A N/A N/A N/A N/A i N/A -1 0 N/A N/A clf N/A LogisticRegression intercept_scaling i N/A msg N/A Intercept scaling is %r but needs to be greater than 0. To disable fitting an intercept, set fit_intercept=False. N/A clf intercept_scaling N/A N/A assert_raise_message ValueError msg N/A clf fit X Y1 N/A test_logreg_intercept_scaling_zero N/A N/A N/A N/A N/A clf N/A LogisticRegression fit_intercept False N/A N/A N/A clf fit X Y1 N/A N/A assert_equal N/A clf intercept_ 0.0 N/A test_logreg_cv_penalty N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 50 n_features 20 random_state 0 N/A lr_cv N/A LogisticRegressionCV penalty l1 Cs N/A 1.0 solver liblinear N/A N/A N/A lr_cv fit X y N/A lr N/A LogisticRegression penalty l1 C 1.0 solver liblinear N/A N/A N/A lr fit X y N/A N/A assert_equal N/A N/A np count_nonzero N/A lr_cv coef_ N/A N/A np count_nonzero N/A lr coef_ N/A test_logreg_predict_proba_multinomial N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 10 n_features 20 random_state 0 n_classes 3 n_informative 10 N/A clf_multi N/A LogisticRegression multi_class multinomial solver lbfgs N/A N/A N/A clf_multi fit X y N/A clf_multi_loss N/A log_loss y N/A N/A clf_multi predict_proba X N/A clf_ovr N/A LogisticRegression multi_class ovr solver lbfgs N/A N/A N/A clf_ovr fit X y N/A clf_ovr_loss N/A log_loss y N/A N/A clf_ovr predict_proba X N/A N/A assert_greater clf_ovr_loss clf_multi_loss N/A clf_multi_loss N/A log_loss y N/A N/A clf_multi predict_proba X N/A clf_wrong_loss N/A log_loss y N/A N/A clf_multi _predict_proba_lr X N/A N/A assert_greater clf_wrong_loss clf_multi_loss N/A test_max_iter N/A N/A N/A N/A N/A N/A X y_bin N/A N/A iris data N/A N/A N/A iris target copy N/A N/A y_bin N/A N/A y_bin 2 0 N/A solvers N/A newton-cg liblinear sag N/A N/A sp_version N/A 0 12 N/A N/A N/A N/A solvers append lbfgs N/A max_iter N/A range 1 5 N/A N/A solver solvers N/A N/A multi_class N/A ovr multinomial N/A N/A N/A N/A solver liblinear N/A multi_class multinomial N/A N/A N/A lr N/A LogisticRegression max_iter max_iter tol 1e-15 multi_class multi_class random_state 0 solver solver N/A N/A N/A lr fit X y_bin N/A N/A assert_equal N/A N/A lr n_iter_ N/A 0 max_iter N/A ignore_warnings test_n_iter N/A N/A N/A N/A N/A N/A X y N/A N/A iris data N/A iris target N/A y_bin N/A N/A y copy N/A N/A y_bin N/A N/A y_bin 2 0 N/A n_Cs 4 N/A n_cv_fold 2 N/A solver N/A newton-cg liblinear sag lbfgs N/A N/A n_classes N/A N/A solver liblinear 1 N/A N/A N/A N/A np unique y shape N/A 0 N/A clf N/A LogisticRegression tol 0.01 multi_class ovr solver solver C 1.0 random_state 42 max_iter 100 N/A N/A N/A clf fit X y N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A n_classes N/A n_classes N/A N/A N/A N/A np unique y shape N/A 0 N/A clf N/A LogisticRegressionCV tol 0.01 multi_class ovr solver solver Cs n_Cs cv n_cv_fold random_state 42 max_iter 100 N/A N/A N/A clf fit X y N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A n_classes n_cv_fold n_Cs N/A N/A N/A clf fit X y_bin N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A 1 n_cv_fold n_Cs N/A n_classes 1 N/A N/A solver N/A liblinear sag N/A N/A N/A clf N/A LogisticRegression tol 0.01 multi_class multinomial solver solver C 1.0 random_state 42 max_iter 100 N/A N/A N/A clf fit X y N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A n_classes N/A clf N/A LogisticRegressionCV tol 0.01 multi_class multinomial solver solver Cs n_Cs cv n_cv_fold random_state 42 max_iter 100 N/A N/A N/A clf fit X y N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A n_classes n_cv_fold n_Cs N/A N/A N/A clf fit X y_bin N/A N/A assert_equal N/A N/A clf n_iter_ shape N/A 1 n_cv_fold n_Cs N/A test_warm_start N/A N/A N/A N/A N/A N/A X y N/A N/A iris data N/A iris target N/A solvers N/A newton-cg sag N/A N/A sp_version N/A 0 12 N/A N/A N/A N/A solvers append lbfgs N/A warm_start N/A True False N/A N/A fit_intercept N/A True False N/A N/A solver solvers N/A N/A multi_class N/A ovr multinomial N/A N/A clf N/A LogisticRegression tol 0.0001 multi_class multi_class warm_start warm_start solver solver random_state 42 max_iter 100 fit_intercept fit_intercept N/A N/A N/A clf fit X y N/A coef_1 N/A clf coef_ N/A N/A clf max_iter 1 N/A N/A ignore_warnings N/A N/A N/A N/A clf fit X y N/A cum_diff N/A N/A np sum N/A N/A np abs N/A coef_1 N/A clf coef_ N/A msg N/A Warm starting issue with %s solver in %s mode with fit_intercept=%s and warm_start=%s N/A solver multi_class N/A str fit_intercept N/A str warm_start N/A warm_start N/A N/A N/A assert_greater 2.0 cum_diff msg N/A N/A N/A assert_greater cum_diff 2.0 msg N/A ignore_warnings