Module Expr Str ImportFrom alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias Import alias Import alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias 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 ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore Num orelse Assign NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Dict Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call NameLoad NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Str ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad NameLoad Assign NameStore Dict Str Str ListLoad Num Num ListLoad Str Str Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Num For NameStore Call NameLoad Num body Assign NameStore Call NameLoad GeneratorExp Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call NameLoad NameLoad Call NameLoad GeneratorExp TupleLoad Str NameLoad Str NameLoad comprehension TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Dict Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad Call NameLoad NameLoad ListLoad Dict Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListLoad Dict Str ListLoad Num Num Dict Dict Str ListLoad Num Expr Call NameLoad Call NameLoad NameLoad Num Expr Call NameLoad Call NameLoad NameLoad ListLoad Dict Str Num Dict Str Num Dict Dict Str Num Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword Num Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num For TupleStore NameStore NameStore Call NameLoad ListLoad Num Num Num body Expr Call NameLoad CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore ListLoad Num Num Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Dict Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Dict Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Dict Str NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr ListLoad ListLoad Num decorator_list NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Num Assign NameStore Dict Str ListLoad Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad keyword NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad keyword Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad Call NameLoad NameLoad keyword Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad keyword Str attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad CompareLt NameLoad Num Expr Call NameLoad CompareLt NameLoad Num 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 TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore Call NameLoad keyword Num Assign NameStore Dict Str ListLoad Num Assign NameStore ListLoad Call NameLoad Call NameLoad Num Call NameLoad Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListLoad Call NameLoad Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num keyword Num keyword Num keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad Num Index Num Slice Num Num Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad Num Index Num Slice Num Num Assign NameStore Call NameLoad keyword Str Assign NameStore ListLoad ListLoad NameLoad UnaryOpInvert NameLoad ListLoad UnaryOpInvert NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Dict Str ListLoad Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num BinOpDiv Num Num Expr Call NameLoad AttributeLoad NameLoad attr BinOpAdd BinOpDiv BinOpMult Num Num Num BinOpDiv BinOpMult BinOpDiv Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword Dict Str ListLoad Num Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call NameLoad AttributeLoad NameLoad attr ListLoad Num BinOpDiv Num Num Expr Call NameLoad 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 Assign NameStore Dict Str Str Str ListLoad Num ListLoad Str ListLoad Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Num keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Str Num Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str ListLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Slice Num attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad CompareGtE Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpUSub Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num AttributeLoad SubscriptLoad NameLoad Slice Num attr Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad CompareGtE AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num AttributeLoad SubscriptLoad NameLoad Slice Num attr Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad CompareGtE Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Lambda arguments args NameParam NameParam defaults Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad UnaryOpNot Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult ListLoad Num Num BinOpMult ListLoad Num Num Assign NameStore Call NameLoad Call NameLoad ListLoad Dict Str ListLoad Num Num keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMult BinOpMult BinOpMult Num Num Num Num attr Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMult BinOpMult Num Num Num attr Num Num Num Assign NameStore Lambda arguments args NameParam defaults CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num Num Assign NameStore Lambda arguments args NameParam defaults CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult ListLoad Num Num BinOpMult ListLoad Num Num Assign NameStore Call NameLoad keyword Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult ListLoad Num Num BinOpMult ListLoad Num Num Assign NameStore Call NameLoad keyword Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad TupleLoad NameLoad NameLoad TryExcept body ImportFrom alias alias Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult ListLoad Num Num BinOpMult ListLoad Num Num For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad NameLoad keyword Call NameLoad keyword ListLoad Num Num Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assign NameStore Call NameLoad NameLoad keyword Call NameLoad keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args defaults body FunctionDef arguments args NameParam NameParam defaults body Return IfExp CompareEq AttributeLoad NameLoad attr Num Num Num decorator_list Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad Call NameLoad keyword Call NameLoad keyword ListLoad Num Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Str Str ListLoad Str Str Call NameLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Expr Call NameLoad Call NameLoad NameLoad Num For NameStore NameLoad body Expr Call NameLoad CompareIn SubscriptLoad NameLoad Index Str ListLoad Str Str Expr Call NameLoad CompareLtELtE Num SubscriptLoad NameLoad Index Str Num Assign NameStore Dict Str ListLoad Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num Expr Call NameLoad ListComp NameLoad comprehension NameStore NameLoad ListComp NameLoad comprehension NameStore NameLoad If CompareGtE NameLoad TupleLoad Num Num body Assign NameStore Dict Str Call NameLoad Num Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num Expr Call NameLoad ListComp NameLoad comprehension NameStore NameLoad ListComp NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Call NameLoad keyword Num keyword Call NameLoad keyword Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr NameLoad Expr Call NameLoad CompareIn AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num Assign NameStore ListLoad Num Num Num For NameStore ListLoad Str Str body Assign NameStore Call NameLoad NameLoad Dict Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad keyword Num For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword NameLoad keyword Num Assign NameStore Dict Str ListLoad Num Num Num Num Assign NameStore Call NameLoad keyword Num Assign NameStore ListLoad Call NameLoad keyword Num Call NameLoad keyword Num For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num Num Assign NameStore ListLoad Num Num Num Num Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad Dict keyword Num attr NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr attr Num Num Assign SubscriptStore NameLoad ExtSlice Index Num Slice AttributeLoad NameLoad attr Assign NameStore ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad TupleLoad Str Call NameLoad keyword Str keyword Str TupleLoad Str Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Dict Str ListLoad Num Num Num keyword Num attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad ListLoad Dict Str ListLoad Num Num Num keyword Str keyword NameLoad keyword Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assert Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num comprehension NameStore AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad ListLoad Dict Str ListLoad Num Num Num keyword Str keyword NameLoad keyword Call NameLoad Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assert Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore Call NameLoad keyword Num keyword Num keyword Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad ListLoad Dict Str ListLoad Num Num Num keyword Str keyword NameLoad keyword Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Str Str ListLoad Num Num ListLoad Str Str Str Assign NameStore Call NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad CompareIn NameLoad NameLoad Assign NameStore Dict Str Str Str Call NameLoad Num Call NameLoad Num Call NameLoad Num Assign NameStore Call NameLoad NameLoad keyword Num keyword Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Num Assign NameStore ListComp BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call NameLoad Call NameLoad Call NameLoad NameLoad Num Assign NameStore Dict Str Str Call NameLoad Num ListLoad Str Str Str Assign NameStore Call NameLoad NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Num decorator_list
N/A N/A Test the search module collections Iterable Sized sklearn.externals.six.moves cStringIO StringIO sklearn.externals.six.moves xrange itertools chain product N/A pickle N/A sys N/A numpy np N/A scipy.sparse sp sklearn.utils.fixes sp_version sklearn.utils.testing assert_equal sklearn.utils.testing assert_not_equal sklearn.utils.testing assert_raises sklearn.utils.testing assert_warns sklearn.utils.testing assert_raise_message sklearn.utils.testing assert_false assert_true sklearn.utils.testing assert_array_equal sklearn.utils.testing assert_almost_equal sklearn.utils.testing assert_array_almost_equal sklearn.utils.testing assert_no_warnings sklearn.utils.testing ignore_warnings sklearn.utils.mocking CheckingClassifier MockDataFrame scipy.stats bernoulli expon uniform sklearn.externals.six.moves zip sklearn.base BaseEstimator sklearn.datasets make_classification sklearn.datasets make_blobs sklearn.datasets make_multilabel_classification sklearn.model_selection KFold sklearn.model_selection StratifiedKFold sklearn.model_selection StratifiedShuffleSplit sklearn.model_selection LeaveOneLabelOut sklearn.model_selection LeavePLabelOut sklearn.model_selection LabelKFold sklearn.model_selection LabelShuffleSplit sklearn.model_selection GridSearchCV sklearn.model_selection RandomizedSearchCV sklearn.model_selection ParameterGrid sklearn.model_selection ParameterSampler sklearn.base ChangedBehaviorWarning sklearn.model_selection._validation FitFailedWarning sklearn.svm LinearSVC SVC sklearn.tree DecisionTreeRegressor sklearn.tree DecisionTreeClassifier sklearn.cluster KMeans sklearn.neighbors KernelDensity sklearn.metrics f1_score sklearn.metrics make_scorer sklearn.metrics roc_auc_score sklearn.preprocessing Imputer sklearn.pipeline Pipeline MockClassifier N/A object N/A N/A Dummy classifier to test the parameter search algorithms __init__ N/A N/A self foo_param N/A 0 N/A N/A N/A self foo_param foo_param N/A fit N/A N/A self X Y N/A N/A N/A N/A assert_true N/A N/A len X N/A len Y N/A self N/A predict N/A N/A self T N/A N/A N/A N/A N/A T shape N/A 0 N/A N/A predict_proba predict N/A decision_function predict N/A transform predict score N/A N/A self X Y N/A None None N/A N/A N/A N/A self foo_param 1 N/A N/A score 1.0 N/A N/A score 0.0 N/A score N/A get_params N/A N/A self deep N/A False N/A N/A N/A foo_param N/A self foo_param N/A set_params N/A N/A self N/A params N/A N/A N/A self foo_param N/A params N/A foo_param N/A self N/A N/A LinearSVCNoScore N/A LinearSVC N/A N/A An LinearSVC classifier that has no score method. score N/A N/A self N/A N/A N/A AttributeError N/A property N/A N/A X N/A N/A np array N/A N/A -1 -1 N/A -2 -1 N/A 1 1 N/A 2 1 N/A y N/A N/A np array N/A 1 1 2 2 assert_grid_iter_equals_getitem N/A N/A grid N/A N/A N/A N/A assert_equal N/A list grid N/A N/A grid N/A i N/A i N/A range N/A len grid N/A test_parameter_grid N/A N/A N/A N/A N/A params1 N/A foo N/A 1 2 3 N/A grid1 N/A ParameterGrid params1 N/A N/A assert_true N/A isinstance grid1 Iterable N/A N/A assert_true N/A isinstance grid1 Sized N/A N/A assert_equal N/A len grid1 3 N/A N/A assert_grid_iter_equals_getitem grid1 N/A params2 N/A foo bar N/A 4 2 N/A ham spam eggs N/A grid2 N/A ParameterGrid params2 N/A N/A assert_equal N/A len grid2 6 N/A i N/A xrange 2 N/A N/A points N/A set N/A N/A tuple N/A chain N/A sorted N/A N/A p items N/A p grid2 N/A N/A assert_equal points N/A set N/A N/A bar x foo y N/A N/A x y N/A product N/A params2 N/A bar N/A params2 N/A foo N/A N/A assert_grid_iter_equals_getitem grid2 N/A empty N/A ParameterGrid N/A N/A N/A assert_equal N/A len empty 1 N/A N/A assert_equal N/A list empty N/A N/A N/A N/A assert_grid_iter_equals_getitem empty N/A N/A assert_raises IndexError N/A N/A N/A N/A N/A empty N/A 1 N/A has_empty N/A ParameterGrid N/A N/A C N/A 1 10 N/A N/A C N/A 0.5 N/A N/A assert_equal N/A len has_empty 4 N/A N/A assert_equal N/A list has_empty N/A N/A C 1 N/A C 10 N/A N/A C 0.5 N/A N/A assert_grid_iter_equals_getitem has_empty N/A test_grid_search N/A N/A N/A N/A N/A clf N/A MockClassifier N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 verbose 3 N/A old_stdout N/A sys stdout N/A N/A sys stdout N/A StringIO N/A N/A N/A grid_search fit X y N/A N/A sys stdout old_stdout N/A N/A assert_equal N/A N/A grid_search best_estimator_ foo_param 2 N/A N/A i foo_i N/A enumerate N/A 1 2 3 N/A N/A N/A assert_true N/A N/A N/A N/A grid_search grid_scores_ N/A i N/A 0 N/A foo_param foo_i N/A N/A N/A grid_search score X y N/A N/A N/A grid_search predict_proba X N/A N/A N/A grid_search decision_function X N/A N/A N/A grid_search transform X N/A N/A grid_search scoring sklearn N/A N/A assert_raises ValueError N/A grid_search fit X y N/A test_grid_search_no_score N/A N/A N/A N/A N/A clf N/A LinearSVC random_state 0 N/A N/A X y N/A make_blobs random_state 0 centers 2 N/A Cs N/A 0.1 1 10 N/A clf_no_score N/A LinearSVCNoScore random_state 0 N/A grid_search N/A GridSearchCV clf N/A C Cs scoring accuracy N/A N/A N/A grid_search fit X y N/A grid_search_no_score N/A GridSearchCV clf_no_score N/A C Cs scoring accuracy N/A N/A N/A grid_search_no_score fit X y N/A N/A assert_equal N/A grid_search_no_score best_params_ N/A grid_search best_params_ N/A N/A assert_equal N/A N/A grid_search score X y N/A N/A grid_search_no_score score X y N/A grid_search_no_score N/A GridSearchCV clf_no_score N/A C Cs N/A N/A assert_raise_message TypeError no scoring N/A grid_search_no_score fit N/A N/A 1 N/A ignore_warnings test_grid_search_score_method N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 100 n_classes 2 flip_y 0.2 random_state 0 N/A clf N/A LinearSVC random_state 0 N/A grid N/A C N/A 0.1 N/A search_no_scoring N/A N/A N/A GridSearchCV clf grid scoring None fit X y N/A search_accuracy N/A N/A N/A GridSearchCV clf grid scoring accuracy fit X y N/A search_no_score_method_auc N/A N/A N/A GridSearchCV N/A LinearSVCNoScore grid scoring roc_auc fit X y N/A search_auc N/A N/A N/A GridSearchCV clf grid scoring roc_auc fit X y N/A score_no_scoring N/A assert_no_warnings N/A search_no_scoring score X y N/A score_accuracy N/A assert_warns ChangedBehaviorWarning N/A search_accuracy score X y N/A score_no_score_auc N/A assert_no_warnings N/A search_no_score_method_auc score X y N/A score_auc N/A assert_warns ChangedBehaviorWarning N/A search_auc score X y N/A N/A assert_true N/A score_auc 1.0 N/A N/A assert_true N/A score_accuracy 1.0 N/A N/A assert_not_equal score_auc score_accuracy N/A N/A assert_almost_equal score_accuracy score_no_scoring N/A N/A assert_almost_equal score_auc score_no_score_auc N/A test_grid_search_labels 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 X y N/A make_classification n_samples 15 n_classes 2 random_state 0 N/A labels N/A N/A rng randint 0 3 15 N/A clf N/A LinearSVC random_state 0 N/A grid N/A C N/A 1 N/A label_cvs N/A N/A LeaveOneLabelOut N/A LeavePLabelOut 2 N/A LabelKFold N/A LabelShuffleSplit N/A cv label_cvs N/A N/A gs N/A GridSearchCV clf grid cv cv N/A N/A assert_raise_message ValueError The labels parameter should not be None N/A gs fit X y N/A N/A N/A gs fit X y labels N/A non_label_cvs N/A N/A StratifiedKFold N/A StratifiedShuffleSplit N/A cv non_label_cvs N/A N/A gs N/A GridSearchCV clf grid cv cv N/A N/A N/A gs fit X y N/A test_trivial_grid_scores N/A N/A N/A N/A N/A clf N/A MockClassifier N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 N/A N/A N/A grid_search fit X y N/A N/A assert_true N/A hasattr grid_search grid_scores_ N/A random_search N/A RandomizedSearchCV clf N/A foo_param N/A 0 n_iter 1 N/A N/A N/A random_search fit X y N/A N/A assert_true N/A hasattr random_search grid_scores_ N/A test_no_refit N/A N/A N/A N/A N/A clf N/A MockClassifier N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 refit False N/A N/A N/A grid_search fit X y N/A N/A assert_true N/A hasattr grid_search best_params_ N/A test_grid_search_error N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A clf N/A LinearSVC N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A assert_raises ValueError N/A cv fit N/A X_ N/A 180 y_ N/A test_grid_search_iid N/A N/A N/A N/A N/A N/A X y N/A make_blobs centers N/A N/A 0 0 N/A 1 0 N/A 0 1 N/A 1 1 random_state 0 cluster_std 0.1 shuffle False n_samples 80 N/A mask N/A N/A np ones N/A N/A X shape N/A 0 dtype N/A np bool N/A N/A mask N/A N/A N/A N/A N/A np where N/A y 1 N/A 0 N/A 2 0 N/A N/A mask N/A N/A N/A N/A N/A np where N/A y 2 N/A 0 N/A 2 0 N/A svm N/A SVC kernel linear N/A cv N/A N/A mask N/A mask N/A N/A mask mask N/A grid_search N/A GridSearchCV svm param_grid N/A C N/A 1 10 cv cv N/A N/A N/A grid_search fit X y N/A first N/A N/A grid_search grid_scores_ N/A 0 N/A N/A assert_equal N/A N/A first parameters N/A C 1 N/A N/A assert_array_almost_equal N/A first cv_validation_scores N/A 1 N/A 1.0 3.0 N/A N/A assert_almost_equal N/A first mean_validation_score N/A N/A N/A 1 1.0 4.0 N/A N/A N/A 1.0 3.0 3.0 4.0 N/A grid_search N/A GridSearchCV svm param_grid N/A C N/A 1 10 cv cv iid False N/A N/A N/A grid_search fit X y N/A first N/A N/A grid_search grid_scores_ N/A 0 N/A N/A assert_equal N/A N/A first parameters N/A C 1 N/A N/A assert_array_almost_equal N/A first cv_validation_scores N/A 1 N/A 1.0 3.0 N/A N/A assert_almost_equal N/A first mean_validation_score N/A N/A np mean N/A first cv_validation_scores N/A test_grid_search_one_grid_point N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A param_dict N/A C kernel gamma N/A 1.0 N/A rbf N/A 0.1 N/A clf N/A SVC N/A cv N/A GridSearchCV clf param_dict N/A N/A N/A cv fit X_ y_ N/A clf N/A SVC C 1.0 kernel rbf gamma 0.1 N/A N/A N/A clf fit X_ y_ N/A N/A assert_array_equal N/A clf dual_coef_ N/A N/A cv best_estimator_ dual_coef_ N/A test_grid_search_bad_param_grid N/A N/A N/A N/A N/A param_dict N/A C 1.0 N/A clf N/A SVC N/A N/A assert_raises ValueError GridSearchCV clf param_dict N/A param_dict N/A C N/A N/A clf N/A SVC N/A N/A assert_raises ValueError GridSearchCV clf param_dict N/A param_dict N/A C N/A N/A N/A N/A np ones 6 reshape 3 2 N/A clf N/A SVC N/A N/A assert_raises ValueError GridSearchCV clf param_dict N/A test_grid_search_sparse N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A clf N/A LinearSVC N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A N/A cv fit N/A X_ N/A 180 N/A y_ N/A 180 N/A y_pred N/A N/A cv predict N/A X_ N/A 180 N/A C N/A N/A cv best_estimator_ C N/A X_ N/A N/A sp csr_matrix X_ N/A clf N/A LinearSVC N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A N/A cv fit N/A N/A N/A X_ N/A 180 tocoo N/A y_ N/A 180 N/A y_pred2 N/A N/A cv predict N/A X_ N/A 180 N/A C2 N/A N/A cv best_estimator_ C N/A N/A assert_true N/A N/A N/A np mean N/A y_pred y_pred2 0.9 N/A N/A assert_equal C C2 N/A test_grid_search_sparse_scoring N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A clf N/A LinearSVC N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 scoring f1 N/A N/A N/A cv fit N/A X_ N/A 180 N/A y_ N/A 180 N/A y_pred N/A N/A cv predict N/A X_ N/A 180 N/A C N/A N/A cv best_estimator_ C N/A X_ N/A N/A sp csr_matrix X_ N/A clf N/A LinearSVC N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 scoring f1 N/A N/A N/A cv fit N/A X_ N/A 180 N/A y_ N/A 180 N/A y_pred2 N/A N/A cv predict N/A X_ N/A 180 N/A C2 N/A N/A cv best_estimator_ C N/A N/A assert_array_equal y_pred y_pred2 N/A N/A assert_equal C C2 f1_loss N/A N/A y_true_ y_pred_ N/A N/A N/A N/A N/A f1_score y_true_ y_pred_ N/A N/A F1Loss N/A make_scorer f1_loss greater_is_better False N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 scoring F1Loss N/A N/A N/A cv fit N/A X_ N/A 180 N/A y_ N/A 180 N/A y_pred3 N/A N/A cv predict N/A X_ N/A 180 N/A C3 N/A N/A cv best_estimator_ C N/A N/A assert_equal C C3 N/A N/A assert_array_equal y_pred y_pred3 N/A test_grid_search_precomputed_kernel N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A K_train N/A N/A np dot N/A X_ N/A 180 N/A N/A X_ N/A 180 T N/A y_train N/A y_ N/A 180 N/A clf N/A SVC kernel precomputed N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A N/A cv fit K_train y_train N/A N/A assert_true N/A N/A cv best_score_ 0 N/A K_test N/A N/A np dot N/A X_ N/A 180 N/A N/A X_ N/A 180 T N/A y_test N/A y_ N/A 180 N/A y_pred N/A N/A cv predict K_test N/A N/A assert_true N/A N/A N/A np mean N/A y_pred y_test 0 N/A N/A assert_raises ValueError N/A cv fit N/A N/A K_train tolist y_train N/A test_grid_search_precomputed_kernel_error_nonsquare N/A N/A N/A N/A N/A K_train N/A N/A np zeros N/A 10 20 N/A y_train N/A N/A np ones N/A 10 N/A clf N/A SVC kernel precomputed N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A assert_raises ValueError N/A cv fit K_train y_train N/A test_grid_search_precomputed_kernel_error_kernel_function N/A N/A N/A N/A N/A N/A X_ y_ N/A make_classification n_samples 200 n_features 100 random_state 0 N/A kernel_function N/A N/A N/A x1 x2 N/A N/A N/A np dot x1 N/A x2 T N/A clf N/A SVC kernel kernel_function N/A cv N/A GridSearchCV clf N/A C N/A 0.1 1.0 N/A N/A assert_raises ValueError N/A cv fit X_ y_ N/A BrokenClassifier N/A BaseEstimator N/A N/A Broken classifier that cannot be fit twice __init__ N/A N/A self parameter N/A None N/A N/A N/A self parameter parameter N/A fit N/A N/A self X y N/A N/A N/A N/A assert_true N/A N/A hasattr self has_been_fit_ N/A N/A self has_been_fit_ True N/A predict N/A N/A self X N/A N/A N/A N/A N/A np zeros N/A N/A X shape N/A 0 N/A N/A test_refit N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 100 reshape 10 10 N/A y N/A N/A np array N/A N/A N/A 0 5 N/A N/A 1 5 N/A clf N/A GridSearchCV N/A BrokenClassifier N/A N/A parameter N/A 0 1 scoring precision refit True N/A N/A N/A clf fit X y N/A ignore_warnings test_gridsearch_nd N/A N/A N/A N/A N/A X_4d N/A N/A N/A N/A np arange N/A N/A N/A 10 5 3 2 reshape 10 5 3 2 N/A y_3d N/A N/A N/A N/A np arange N/A N/A 10 7 11 reshape 10 7 11 N/A check_X N/A N/A N/A x N/A N/A N/A N/A x shape N/A 1 N/A 5 3 2 N/A check_y N/A N/A N/A x N/A N/A N/A N/A x shape N/A 1 N/A 7 11 N/A clf N/A CheckingClassifier check_X check_X check_y check_y N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 N/A N/A N/A N/A N/A grid_search fit X_4d y_3d score X y N/A N/A assert_true N/A hasattr grid_search grid_scores_ N/A test_X_as_list N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 100 reshape 10 10 N/A y N/A N/A np array N/A N/A N/A 0 5 N/A N/A 1 5 N/A clf N/A CheckingClassifier check_X N/A N/A N/A x N/A N/A isinstance x list N/A cv N/A KFold n_folds 3 N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 cv cv N/A N/A N/A N/A N/A grid_search fit N/A N/A X tolist y score X y N/A N/A assert_true N/A hasattr grid_search grid_scores_ N/A test_y_as_list N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 100 reshape 10 10 N/A y N/A N/A np array N/A N/A N/A 0 5 N/A N/A 1 5 N/A clf N/A CheckingClassifier check_y N/A N/A N/A x N/A N/A isinstance x list N/A cv N/A KFold n_folds 3 N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 cv cv N/A N/A N/A N/A N/A grid_search fit X N/A N/A y tolist score X y N/A N/A assert_true N/A hasattr grid_search grid_scores_ N/A test_pandas_input N/A N/A N/A N/A N/A types N/A N/A MockDataFrame MockDataFrame N/A N/A pandas Series DataFrame N/A N/A N/A types append N/A DataFrame Series N/A N/A N/A ImportError N/A N/A N/A X N/A N/A N/A N/A np arange 100 reshape 10 10 N/A y N/A N/A np array N/A N/A N/A 0 5 N/A N/A 1 5 N/A N/A InputFeatureType TargetType types N/A N/A N/A X_df y_ser N/A N/A InputFeatureType X N/A TargetType y N/A check_df N/A N/A N/A x N/A N/A isinstance x InputFeatureType N/A check_series N/A N/A N/A x N/A N/A isinstance x TargetType N/A clf N/A CheckingClassifier check_X check_df check_y check_series N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 N/A N/A N/A N/A N/A grid_search fit X_df y_ser score X_df y_ser N/A N/A N/A grid_search predict X_df N/A N/A assert_true N/A hasattr grid_search grid_scores_ N/A ignore_warnings test_unsupervised_grid_search N/A N/A N/A N/A N/A N/A X y N/A make_blobs random_state 0 N/A km N/A KMeans random_state 0 N/A grid_search N/A GridSearchCV km param_grid N/A dict n_clusters N/A 2 3 4 scoring adjusted_rand_score N/A N/A N/A grid_search fit X y N/A N/A assert_equal N/A N/A grid_search best_params_ N/A n_clusters 3 N/A grid_search N/A GridSearchCV km param_grid N/A dict n_clusters N/A 2 3 4 N/A N/A N/A grid_search fit X N/A N/A assert_equal N/A N/A grid_search best_params_ N/A n_clusters 4 N/A test_gridsearch_no_predict N/A N/A N/A N/A custom_scoring N/A N/A estimator X N/A N/A N/A N/A N/A N/A estimator bandwidth 0.1 42 0 N/A N/A N/A X _ N/A make_blobs cluster_std 0.1 random_state 1 centers N/A N/A 0 1 N/A 1 0 N/A 0 0 N/A search N/A GridSearchCV N/A KernelDensity param_grid N/A dict bandwidth N/A 0.01 0.1 1 scoring custom_scoring N/A N/A N/A search fit X N/A N/A assert_equal N/A N/A search best_params_ N/A bandwidth 0.1 N/A N/A assert_equal N/A search best_score_ 42 N/A test_param_sampler N/A N/A N/A N/A N/A param_distributions N/A kernel C N/A rbf linear N/A uniform 0 1 N/A sampler N/A ParameterSampler param_distributions param_distributions n_iter 10 random_state 0 N/A samples N/A x N/A x sampler N/A N/A assert_equal N/A len samples 10 N/A sample samples N/A N/A N/A assert_true N/A N/A sample N/A kernel N/A rbf linear N/A N/A assert_true N/A 0 N/A sample N/A C 1 N/A param_distributions N/A C N/A 0 1 2 3 4 5 6 7 8 9 10 N/A sampler N/A ParameterSampler param_distributions param_distributions n_iter 3 random_state 0 N/A N/A assert_equal N/A x N/A x sampler N/A x N/A x sampler N/A N/A sp_version N/A 0 16 N/A N/A param_distributions N/A C N/A uniform 0 1 N/A sampler N/A ParameterSampler param_distributions param_distributions n_iter 10 random_state 0 N/A N/A assert_equal N/A x N/A x sampler N/A x N/A x sampler N/A test_randomized_search_grid_scores N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 200 n_features 100 n_informative 3 random_state 0 N/A params N/A dict C N/A expon scale 10 gamma N/A expon scale 0.1 N/A n_cv_iter 3 N/A n_search_iter 30 N/A search N/A RandomizedSearchCV N/A SVC n_iter n_search_iter cv n_cv_iter param_distributions params iid False N/A N/A N/A search fit X y N/A N/A assert_equal N/A len N/A search grid_scores_ n_search_iter N/A cv_score N/A search grid_scores_ N/A N/A N/A assert_equal N/A len N/A cv_score cv_validation_scores n_cv_iter N/A N/A assert_almost_equal N/A N/A np mean N/A cv_score cv_validation_scores N/A cv_score mean_validation_score N/A N/A assert_equal N/A list N/A sorted N/A N/A N/A cv_score parameters keys N/A list N/A sorted N/A N/A params keys N/A sorted_grid_scores N/A list N/A sorted N/A search grid_scores_ key N/A N/A N/A x N/A N/A x mean_validation_score N/A best_score N/A N/A sorted_grid_scores N/A -1 mean_validation_score N/A N/A assert_equal N/A search best_score_ best_score N/A tied_best_params N/A N/A s parameters N/A s sorted_grid_scores N/A N/A s mean_validation_score best_score N/A N/A assert_true N/A N/A search best_params_ tied_best_params N/A N/A best_params_={0} is not part of the tied best models: {1} format N/A search best_params_ tied_best_params N/A test_grid_search_score_consistency N/A N/A N/A N/A N/A clf N/A LinearSVC random_state 0 N/A N/A X y N/A make_blobs random_state 0 centers 2 N/A Cs N/A 0.1 1 10 N/A score N/A f1 roc_auc N/A N/A grid_search N/A GridSearchCV clf N/A C Cs scoring score N/A N/A N/A grid_search fit X y N/A cv N/A StratifiedKFold n_folds 3 N/A N/A C scores N/A zip Cs N/A grid_search grid_scores_ N/A N/A N/A N/A clf set_params C C N/A scores N/A scores N/A 2 N/A i 0 N/A N/A train test N/A N/A cv split X y N/A N/A N/A N/A clf fit N/A X N/A train N/A y N/A train N/A N/A score f1 N/A N/A correct_score N/A f1_score N/A y N/A test N/A N/A clf predict N/A X N/A test N/A N/A N/A score roc_auc N/A N/A dec N/A N/A clf decision_function N/A X N/A test N/A correct_score N/A roc_auc_score N/A y N/A test dec N/A N/A assert_almost_equal correct_score N/A scores N/A i N/A i 1 N/A test_pickle N/A N/A N/A N/A N/A clf N/A MockClassifier N/A grid_search N/A GridSearchCV clf N/A foo_param N/A 1 2 3 refit True N/A N/A N/A grid_search fit X y N/A N/A N/A pickle dumps grid_search N/A random_search N/A RandomizedSearchCV clf N/A foo_param N/A 1 2 3 refit True n_iter 3 N/A N/A N/A random_search fit X y N/A N/A N/A pickle dumps random_search N/A test_grid_search_with_multioutput_data N/A N/A N/A N/A N/A N/A X y N/A make_multilabel_classification return_indicator True random_state 0 N/A est_parameters N/A max_depth N/A 1 2 3 4 N/A cv N/A KFold random_state 0 N/A estimators N/A N/A DecisionTreeRegressor random_state 0 N/A DecisionTreeClassifier random_state 0 N/A est estimators N/A N/A grid_search N/A GridSearchCV est est_parameters cv cv N/A N/A N/A grid_search fit X y N/A N/A parameters _ cv_validation_scores N/A grid_search grid_scores_ N/A N/A N/A N/A est set_params parameters N/A N/A i N/A train test N/A enumerate N/A N/A cv split X y N/A N/A N/A N/A est fit N/A X N/A train N/A y N/A train N/A correct_score N/A N/A est score N/A X N/A test N/A y N/A test N/A N/A assert_almost_equal correct_score N/A cv_validation_scores N/A i N/A est estimators N/A N/A random_search N/A RandomizedSearchCV est est_parameters cv cv n_iter 3 N/A N/A N/A random_search fit X y N/A N/A parameters _ cv_validation_scores N/A random_search grid_scores_ N/A N/A N/A N/A est set_params parameters N/A N/A i N/A train test N/A enumerate N/A N/A cv split X y N/A N/A N/A N/A est fit N/A X N/A train N/A y N/A train N/A correct_score N/A N/A est score N/A X N/A test N/A y N/A test N/A N/A assert_almost_equal correct_score N/A cv_validation_scores N/A i N/A test_predict_proba_disabled N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 20 reshape 5 -1 N/A y N/A 0 0 1 1 1 N/A clf N/A SVC probability False N/A gs N/A N/A N/A GridSearchCV clf N/A cv 2 fit X y N/A N/A assert_false N/A hasattr gs predict_proba N/A test_grid_search_allows_nans N/A N/A N/A N/A N/A X N/A N/A N/A N/A np arange 20 dtype N/A np float64 reshape 5 -1 N/A N/A X N/A N/A 2 N/A N/A np nan N/A y N/A 0 0 1 1 1 N/A p N/A Pipeline N/A N/A imputer N/A Imputer strategy mean missing_values NaN N/A classifier N/A MockClassifier N/A N/A N/A N/A GridSearchCV p N/A classifier__foo_param N/A 1 2 3 cv 2 fit X y N/A FailingClassifier N/A BaseEstimator N/A N/A Classifier that raises a ValueError on fit() N/A FAILING_PARAMETER 2 __init__ N/A N/A self parameter N/A None N/A N/A N/A self parameter parameter N/A fit N/A N/A self X y N/A None N/A N/A N/A N/A self parameter N/A FailingClassifier FAILING_PARAMETER N/A N/A N/A ValueError Failing classifier failed as required N/A predict N/A N/A self X N/A N/A N/A N/A N/A np zeros N/A N/A X shape N/A 0 N/A N/A test_grid_search_failing_classifier N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 10 random_state 0 N/A clf N/A FailingClassifier N/A gs N/A GridSearchCV clf N/A N/A parameter N/A 0 1 2 scoring accuracy refit False error_score 0.0 N/A N/A assert_warns FitFailedWarning N/A gs fit X y N/A N/A all N/A N/A N/A np all N/A N/A this_point cv_validation_scores 0.0 N/A this_point N/A gs grid_scores_ N/A N/A N/A this_point parameters N/A parameter N/A FailingClassifier FAILING_PARAMETER N/A gs N/A GridSearchCV clf N/A N/A parameter N/A 0 1 2 scoring accuracy refit False error_score N/A float nan N/A N/A assert_warns FitFailedWarning N/A gs fit X y N/A N/A all N/A N/A N/A np all N/A N/A np isnan N/A this_point cv_validation_scores N/A this_point N/A gs grid_scores_ N/A N/A N/A this_point parameters N/A parameter N/A FailingClassifier FAILING_PARAMETER N/A test_grid_search_failing_classifier_raise N/A N/A N/A N/A N/A N/A X y N/A make_classification n_samples 20 n_features 10 random_state 0 N/A clf N/A FailingClassifier N/A gs N/A GridSearchCV clf N/A N/A parameter N/A 0 1 2 scoring accuracy refit False error_score raise N/A N/A assert_raises ValueError N/A gs fit X y N/A test_parameters_sampler_replacement N/A N/A N/A N/A N/A params N/A first second N/A 0 1 N/A a b c N/A sampler N/A ParameterSampler params n_iter 7 N/A N/A assert_raises ValueError list sampler N/A sampler N/A ParameterSampler params n_iter 6 N/A samples N/A list sampler N/A N/A assert_equal N/A len samples 6 N/A values N/A ParameterGrid params N/A N/A N/A assert_true N/A values samples N/A params N/A a b c N/A range 10 N/A range 10 N/A range 10 N/A sampler N/A ParameterSampler params n_iter 99 random_state 42 N/A samples N/A list sampler N/A N/A assert_equal N/A len samples 99 N/A hashable_samples N/A N/A a%db%dc%d N/A N/A p N/A a N/A p N/A b N/A p N/A c N/A p samples N/A N/A assert_equal N/A len N/A set hashable_samples 99 N/A params_distribution N/A first second N/A bernoulli 0.5 N/A a b c N/A sampler N/A ParameterSampler params_distribution n_iter 7 N/A samples N/A list sampler N/A N/A assert_equal N/A len samples 7 N/A