Module Import alias identifier ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Expr Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad ListLoad comprehension NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareGt Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index CompareEq SubscriptLoad NameLoad Index NameLoad Num Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad CompareLtE NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index CompareEq SubscriptLoad NameLoad Index NameLoad Num Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad CompareGtE NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad ListLoad ListLoad ListLoad ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Str Num If CompareGtE NameLoad Num body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListComp Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListComp Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListComp Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Str Str kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad TupleLoad Str Str body Raise Call NameLoad BinOpAdd Str Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Str Str vararg kwarg body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str If CompareIsNot NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Raise Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num Num Num NameLoad Num Num kwarg body Expr Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Import alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad orelse Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult SubscriptLoad NameLoad Index NameLoad BinOpAdd BinOpDiv BinOpMult BinOpSub Num NameLoad BinOpPow NameLoad Num Num BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd BinOpDiv UnaryOpUSub Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult BinOpMult SubscriptLoad NameLoad Index NameLoad BinOpSub Num NameLoad NameLoad Return BinOpAdd BinOpDiv UnaryOpUSub SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult SubscriptLoad NameLoad Index NameLoad BinOpSub Num NameLoad Return BinOpAdd BinOpDiv UnaryOpUSub SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index TupleLoad Num Num NameLoad NameLoad decorator_list Return TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad ExtSlice Slice Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body If SubscriptLoad NameLoad Index NameLoad body Continue Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad NameLoad keyword NameLoad If BoolOpAnd CompareGt NameLoad Num CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Break AugAssignMult NameStore CompareGtE Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad BinOpSub SubscriptLoad NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad BinOpMult NameLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignAdd NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice BinOpDiv NameLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignSub NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignAdd NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num AugAssignAdd NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num AugAssignSub NameStore NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignSub NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignAdd NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Index NameLoad attr Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpMult NameLoad BinOpSub BinOpDiv NameLoad NameLoad BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpPow NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignSub NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Index NameLoad attr Num Return UnaryOpUSub NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignAdd NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Index NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Index NameLoad attr Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad BinOpMult NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Index NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Slice AugAssignSub NameStore Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice AugAssignSub NameStore Call AttributeLoad BinOpMult SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Index NameLoad attr Num Return UnaryOpUSub NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num AugAssignAdd SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Slice Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignBitOr NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad Num Assign NameStore BinOpDiv Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad BinOpMult SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Index NameLoad Slice BinOpMult NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignSub NameStore Call NameLoad NameLoad AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad Num If CompareGt Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignSub NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice BinOpDiv NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AugAssignSub NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr For NameStore SubscriptLoad Call NameLoad NameLoad Slice Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpDiv Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignSub NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad UnaryOpUSub AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign SubscriptStore NameLoad Index SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad ListLoad Str Str Str Str body Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad ClassDef bases body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore NameLoad orelse If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad BinOpMult NameLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Return NameLoad If BoolOpAnd CompareIs NameLoad NameLoad NameLoad body Assign NameStore Str Raise Call NameLoad NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body If BoolOpAnd NameLoad CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Raise Call NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMult ListLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Call NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMult Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod NameLoad Dict Str NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num keyword Num Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore NameLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body If CompareLt SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Slice UnaryOpUSub NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Slice UnaryOpUSub NameLoad NameLoad Assign TupleStore SubscriptStore NameLoad Index NameLoad SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Str body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Assign AttributeStore NameLoad attr BinOpMod NameLoad Dict Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Return TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareLt NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Index SubscriptLoad NameLoad Index NameLoad Slice BinOpSub SubscriptLoad NameLoad ExtSlice Index NameLoad Slice SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Index SubscriptLoad NameLoad Index NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpSub SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad BinOpMult NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num body Expr Str ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Num Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str BinOpDiv NameLoad Num Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign NameStore BinOpMod Str BinOpSub Num BinOpDiv NameLoad Num Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad If CompareNotEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareGt NameLoad Num body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad CompareLt AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Return Call AttributeLoad BinOpMult AttributeLoad NameLoad attr BinOpPow BinOpSub AttributeLoad NameLoad attr NameLoad Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Num NameLoad Assign NameStore BinOpSub NameLoad BinOpMult NameLoad NameLoad If CompareGt NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Num orelse If CompareGtE NameLoad Num body AugAssignAdd NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad orelse If CompareLt NameLoad Num body AugAssignSub NameStore BinOpDiv BinOpAdd NameLoad NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Num NameLoad If CompareGt NameLoad BinOpAdd NameLoad Num body Return Call NameLoad SubscriptLoad NameLoad Index Num keyword TupleLoad BinOpSub NameLoad Num BinOpAdd NameLoad Num keyword NameLoad Return NameLoad decorator_list
N/A N/A numpy np statsmodels.base model N/A statsmodels.base.model base statsmodels.tools.decorators cache_readonly scipy.optimize brent statsmodels.compat.numpy np_matrix_rank N/A 
Implementation of proportional hazards regression models for duration
data that may be censored ("Cox models").

References
----------
T Therneau (1996).  Extending the Cox model.  Technical report.
http://www.mayo.edu/research/documents/biostat-58pdf/DOC-10027288

G Rodriguez (2005).  Non-parametric estimation in survival models.
http://data.princeton.edu/pop509/NonParametricSurvival.pdf

B Gillespie (2006).  Checking the assumptions in the Cox proportional
hazards model.
http://www.mwsug.org/proceedings/2006/stats/MWSUG-2006-SD08.pdf
 N/A _predict_docstring 
    Returns predicted values from the proportional hazards
    regression model.

    Parameters
    ----------
    params : array-like
        The proportional hazards model parameters.
    exog : array-like
        Data to use as `exog` in forming predictions.  If not
        provided, the `exog` values from the model used to fit the
        data are used.%(cov_params_doc)s
    endog : array-like
        Duration (time) values at which the predictions are made.
        Only used if pred_type is either 'cumhaz' or 'surv'.  If
        using model `exog`, defaults to model `endog` (time), but
        may be provided explicitly to make predictions at
        alternative times.
    strata : array-like
        A vector of stratum values used to form the predictions.
        Not used (may be 'None') if pred_type is 'lhr' or 'hr'.
        If `exog` is None, the model stratum values are used.  If
        `exog` is not None and pred_type is 'surv' or 'cumhaz',
        stratum values must be provided (unless there is only one
        stratum).
    offset : array-like
        Offset values used to create the predicted values.
    pred_type : string
        If 'lhr', returns log hazard ratios, if 'hr' returns
        hazard ratios, if 'surv' returns the survival function, if
        'cumhaz' returns the cumulative hazard function.

    Returns
    -------
    A bunch containing two fields: `predicted_values` and
    `standard_errors`.

    Notes
    -----
    Standard errors are only returned when predicting the log
    hazard ratio (pred_type is 'lhr').

    Types `surv` and `cumhaz` require estimation of the cumulative
    hazard function.
 N/A _predict_cov_params_docstring 
    cov_params : array-like
        The covariance matrix of the estimated `params` vector,
        used to obtain prediction errors if pred_type='lhr',
        otherwise optional. PHSurvivalTime N/A object N/A __init__ N/A N/A self time status exog strata entry offset N/A None None None N/A N/A 
        Represent a collection of survival times with possible
        stratification and left truncation.

        Parameters
        ----------
        time : array_like
            The times at which either the event (failure) occurs or
            the observation is censored.
        status : array_like
            Indicates whether the event (failure) occurs at `time`
            (`status` is 1), or if `time` is a censoring time (`status`
            is 0).
        exog : array_like
            The exogeneous (covariate) data matrix, cases are rows and
            variables are columns.
        strata : array_like
            Grouping variable defining the strata.  If None, all
            observations are in a single stratum.
        entry : array_like
            Entry (left truncation) times.  The observation is not
            part of the risk set for times before the entry time.  If
            None, the entry time is treated as being zero, which
            gives no left truncation.  The entry time must be less
            than or equal to `time`.
        offset : array-like
            An optional array of offsets
         N/A N/A strata None N/A N/A strata N/A N/A np zeros N/A len time dtype N/A np int32 N/A N/A entry None N/A N/A entry N/A N/A np zeros N/A len time N/A N/A n1 n2 n3 n4 N/A N/A len time N/A len status N/A len strata N/A len entry N/A nv N/A n1 n2 n3 n4 N/A N/A N/A max nv N/A min nv N/A N/A N/A ValueError N/A endog, status, strata, and  entry must all have the same length N/A N/A N/A min time 0 N/A N/A N/A ValueError endog must be non-negative N/A N/A N/A min entry 0 N/A N/A N/A ValueError entry time must be non-negative N/A N/A N/A np any N/A entry time N/A N/A N/A ValueError N/A entry times may not occur  after event or censoring times N/A stu N/A N/A np unique strata N/A sth N/A dict N/A N/A x N/A N/A x stu N/A N/A i k N/A enumerate strata N/A N/A N/A N/A N/A sth N/A k append i N/A stratum_rows N/A N/A N/A np asarray N/A sth N/A k dtype N/A np int32 N/A k stu N/A stratum_names stu N/A ix N/A i N/A N/A i ix N/A enumerate stratum_rows N/A N/A N/A N/A status N/A ix sum 0 N/A N/A self nstrat_orig N/A len stratum_rows N/A stratum_rows N/A N/A stratum_rows N/A i N/A i ix N/A stratum_names N/A N/A stratum_names N/A i N/A i ix N/A nstrat N/A len stratum_rows N/A N/A self nstrat nstrat N/A N/A stx ix N/A enumerate stratum_rows N/A N/A last_failure N/A max N/A N/A time N/A ix N/A N/A N/A status N/A ix 1 N/A ii N/A i N/A N/A i t N/A enumerate N/A entry N/A ix N/A t last_failure N/A N/A stratum_rows N/A stx N/A N/A stratum_rows N/A stx N/A ii N/A N/A stx ix N/A enumerate stratum_rows N/A N/A first_failure N/A min N/A N/A time N/A ix N/A N/A N/A status N/A ix 1 N/A ii N/A i N/A N/A i t N/A enumerate N/A time N/A ix N/A t first_failure N/A N/A stratum_rows N/A stx N/A N/A stratum_rows N/A stx N/A ii N/A N/A stx ix N/A enumerate stratum_rows N/A N/A ii N/A N/A np argsort N/A time N/A ix N/A N/A stratum_rows N/A stx N/A N/A stratum_rows N/A stx N/A ii N/A N/A offset None N/A N/A N/A self offset_s N/A N/A stx N/A range nstrat N/A N/A N/A N/A N/A self offset_s append N/A offset N/A N/A stratum_rows N/A stx N/A N/A N/A self offset_s None N/A N/A self n_obs N/A sum N/A N/A len ix N/A ix stratum_rows N/A N/A self time_s N/A N/A N/A self exog_s N/A N/A N/A self status_s N/A N/A N/A self entry_s N/A N/A ix stratum_rows N/A N/A N/A N/A N/A self time_s append N/A time N/A ix N/A N/A N/A N/A self exog_s append N/A exog N/A N/A ix N/A N/A N/A N/A N/A self status_s append N/A status N/A ix N/A N/A N/A N/A self entry_s append N/A entry N/A ix N/A N/A self stratum_rows stratum_rows N/A N/A self stratum_names stratum_names N/A N/A N/A self ufailt_ix N/A self risk_enter N/A self risk_exit N/A self ufailt N/A N/A N/A N/A N/A N/A stx N/A range N/A self nstrat N/A N/A ift N/A N/A np flatnonzero N/A N/A N/A self status_s N/A stx 1 N/A ft N/A N/A N/A self time_s N/A stx N/A ift N/A uft N/A N/A np unique ft N/A nuft N/A len uft N/A uft_map N/A dict N/A N/A x i N/A N/A i x N/A enumerate uft N/A uft_ix N/A N/A N/A k N/A range nuft N/A N/A ix ti N/A zip ift ft N/A N/A N/A N/A N/A uft_ix N/A N/A uft_map N/A ti append ix N/A risk_enter1 N/A N/A N/A k N/A range nuft N/A N/A i t N/A enumerate N/A N/A self time_s N/A stx N/A N/A ix N/A N/A N/A np searchsorted uft t right 1 N/A N/A ix 0 N/A N/A N/A N/A N/A risk_enter1 N/A ix append i N/A risk_exit1 N/A N/A N/A k N/A range nuft N/A N/A i t N/A enumerate N/A N/A self entry_s N/A stx N/A N/A ix N/A N/A np searchsorted uft t N/A N/A N/A N/A risk_exit1 N/A ix append i N/A N/A N/A N/A self ufailt append uft N/A N/A N/A N/A self ufailt_ix append N/A N/A N/A np asarray x dtype N/A np int32 N/A x uft_ix N/A N/A N/A N/A self risk_enter append N/A N/A N/A np asarray x dtype N/A np int32 N/A x risk_enter1 N/A N/A N/A N/A self risk_exit append N/A N/A N/A np asarray x dtype N/A np int32 N/A x risk_exit1 N/A N/A PHReg N/A N/A model LikelihoodModel N/A N/A 
    Fit the Cox proportional hazards regression model for right
    censored data.

    Parameters
    ----------
    endog : array-like
        The observed times (event or censoring)
    exog : 2D array-like
        The covariates or exogeneous variables
    status : array-like
        The censoring status values; status=1 indicates that an
        event occured (e.g. failure or death), status=0 indicates
        that the observation was right censored. If None, defaults
        to status=1 for all cases.
    entry : array-like
        The entry times, if left truncation occurs
    strata : array-like
        Stratum labels.  If None, all observations are taken to be
        in a single stratum.
    ties : string
        The method used to handle tied times, must be either 'breslow'
        or 'efron'.
    offset : array-like
        Array of offset values
    missing : string
        The method used to handle missing data

    Notes
    -----
    Proportional hazards regression models should not include an
    explicit or implicit intercept.  The effect of an intercept is
    not identified using the partial likelihood approach.

    `endog`, `event`, `strata`, `entry`, and the first dimension
    of `exog` all must have the same length
     __init__ N/A N/A self endog exog status entry strata offset ties missing N/A None None None None breslow drop kwargs N/A N/A N/A status None N/A N/A status N/A N/A np ones N/A len endog N/A N/A N/A N/A super PHReg self __init__ endog exog status status entry entry strata strata offset offset missing missing kwargs N/A N/A N/A self status None N/A N/A N/A self status N/A N/A np asarray N/A self status N/A N/A N/A self entry None N/A N/A N/A self entry N/A N/A np asarray N/A self entry N/A N/A N/A self strata None N/A N/A N/A self strata N/A N/A np asarray N/A self strata N/A N/A N/A self offset None N/A N/A N/A self offset N/A N/A np asarray N/A self offset N/A N/A self surv N/A PHSurvivalTime N/A self endog N/A self status N/A self exog N/A self strata N/A self entry N/A self offset N/A N/A self missing missing N/A N/A self df_resid N/A N/A np float N/A N/A N/A N/A self exog shape N/A 0 N/A np_matrix_rank N/A self exog N/A N/A self df_model N/A N/A np float N/A np_matrix_rank N/A self exog N/A ties N/A N/A ties lower N/A N/A ties N/A efron breslow N/A N/A N/A ValueError N/A `ties` must be either `efron` or  `breslow` N/A N/A self ties ties N/A from_formula N/A N/A cls formula data status entry strata offset subset ties missing N/A None None None None None breslow drop args kwargs N/A N/A 
        Create a proportional hazards regression model from a formula
        and dataframe.

        Parameters
        ----------
        formula : str or generic Formula object
            The formula specifying the model
        data : array-like
            The data for the model. See Notes.
        status : array-like
            The censoring status values; status=1 indicates that an
            event occured (e.g. failure or death), status=0 indicates
            that the observation was right censored. If None, defaults
            to status=1 for all cases.
        entry : array-like
            The entry times, if left truncation occurs
        strata : array-like
            Stratum labels.  If None, all observations are taken to be
            in a single stratum.
        offset : array-like
            Array of offset values
        subset : array-like
            An array-like object of booleans, integers, or index
            values that indicate the subset of df to use in the
            model. Assumes df is a `pandas.DataFrame`
        ties : string
            The method used to handle tied times, must be either 'breslow'
            or 'efron'.
        missing : string
            The method used to handle missing data
        args : extra arguments
            These are passed to the model
        kwargs : extra keyword arguments
            These are passed to the model with one exception. The
            ``eval_env`` keyword is passed to patsy. It can be either a
            :class:`patsy:patsy.EvalEnvironment` object or an integer
            indicating the depth of the namespace to use. For example, the
            default ``eval_env=0`` uses the calling namespace. If you wish
            to use a "clean" environment set ``eval_env=-1``.

        Returns
        -------
        model : PHReg model instance
         N/A N/A isinstance status str N/A N/A status N/A data N/A status N/A N/A isinstance entry str N/A N/A entry N/A data N/A entry N/A N/A isinstance strata str N/A N/A strata N/A data N/A strata N/A N/A isinstance offset str N/A N/A offset N/A data N/A offset N/A mod N/A N/A N/A super PHReg cls from_formula formula data status status entry entry strata strata offset offset subset subset ties ties missing missing args kwargs N/A mod N/A classmethod fit N/A N/A self groups N/A None args N/A N/A 
        Fit a proportional hazards regression model.

        Parameters
        ----------
        groups : array-like
            Labels indicating groups of observations that may be
            dependent.  If present, the standard errors account for
            this dependence. Does not affect fitted values.

        Returns a PHregResults instance.
         N/A N/A groups None N/A N/A N/A N/A len groups N/A len N/A self endog N/A N/A msg N/A len(groups) = %d and len(endog) = %d differ N/A N/A len groups N/A len N/A self endog N/A N/A ValueError msg N/A N/A self groups N/A N/A np asarray groups N/A N/A N/A self groups None N/A N/A disp args N/A N/A N/A args N/A disp False N/A fit_rslts N/A N/A N/A super PHReg self fit args N/A N/A N/A self groups None N/A N/A cov_params N/A N/A fit_rslts cov_params N/A N/A cov_params N/A N/A self robust_covariance N/A fit_rslts params N/A results N/A PHRegResults self N/A fit_rslts params cov_params N/A results N/A fit_regularized N/A N/A self method maxiter alpha L1_wt start_params cnvrg_tol zero_tol N/A coord_descent 100 0.0 1.0 None 1e-07 1e-08 kwargs N/A N/A 
        Return a regularized fit to a linear regression model.

        Parameters
        ----------
        method :
            Only the coordinate descent algorithm is implemented.
        maxiter : integer
            The maximum number of iteration cycles (an iteration cycle
            involves running coordinate descent on all variables).
        alpha : scalar or array-like
            The penalty weight.  If a scalar, the same penalty weight
            applies to all variables in the model.  If a vector, it
            must have the same length as `params`, and contains a
            penalty weight for each coefficient.
        L1_wt : scalar
            The fraction of the penalty given to the L1 penalty term.
            Must be between 0 and 1 (inclusive).  If 0, the fit is
            a ridge fit, if 1 it is a lasso fit.
        start_params : array-like
            Starting values for `params`.
        cnvrg_tol : scalar
            If `params` changes by less than this amount (in sup-norm)
            in once iteration cycle, the algorithm terminates with
            convergence.
        zero_tol : scalar
            Any estimated coefficient smaller than this value is
            replaced with zero.

        Returns
        -------
        A PHregResults object, of the same type returned by `fit`.

        Notes
        -----
        The penalty is the"elastic net" penalty, which
        is a convex combination of L1 and L2 penalties.

        The function that is minimized is: ..math::

            -loglike/n + alpha*((1-L1_wt)*|params|_2^2/2 + L1_wt*|params|_1)

        where :math:`|*|_1` and :math:`|*|_2` are the L1 and L2 norms.

        Post-estimation results are based on the same data used to
        select variables, hence may be subject to overfitting biases.
         N/A k_exog N/A N/A N/A self exog shape N/A 1 N/A n_exog N/A N/A N/A self exog shape N/A 0 N/A N/A N/A np isscalar alpha N/A N/A alpha N/A alpha N/A N/A np ones k_exog dtype N/A np float64 N/A N/A self groups None N/A N/A start_params None N/A N/A params N/A N/A np zeros k_exog dtype N/A np float64 N/A N/A params N/A N/A start_params copy N/A copy N/A surv N/A N/A copy deepcopy N/A self surv N/A N/A N/A self offset None N/A N/A offset_s_base N/A N/A N/A np zeros N/A len x N/A x N/A surv stratum_rows N/A N/A surv offset_s N/A N/A N/A x copy N/A x offset_s_base N/A N/A offset_s_base N/A N/A N/A x copy N/A x N/A surv offset_s N/A model_1var N/A N/A copy deepcopy self N/A N/A model_1var surv surv N/A N/A model_1var ties N/A self ties gen_npfuncs N/A N/A k N/A N/A nploglike N/A N/A params N/A N/A N/A pen N/A N/A alpha N/A k N/A N/A N/A N/A 1 L1_wt N/A params 2 2 N/A L1_wt N/A N/A np abs params N/A N/A N/A N/A N/A N/A model_1var loglike N/A N/A np r_ N/A params n_exog pen N/A npscore N/A N/A params N/A N/A N/A pen_grad N/A N/A N/A alpha N/A k N/A 1 L1_wt params N/A N/A N/A N/A N/A N/A N/A model_1var score N/A N/A np r_ N/A params N/A 0 n_exog pen_grad N/A nphess N/A N/A params N/A N/A N/A pen_hess N/A N/A alpha N/A k N/A 1 L1_wt N/A N/A N/A N/A N/A N/A N/A model_1var hessian N/A N/A np r_ N/A params N/A N/A 0 0 n_exog pen_hess N/A N/A N/A nploglike npscore nphess N/A N/A nploglike_funcs N/A N/A gen_npfuncs k N/A k N/A range N/A len params N/A exog_s N/A N/A k N/A range k_exog N/A N/A ex N/A N/A N/A x N/A N/A N/A k N/A N/A N/A None N/A x N/A surv exog_s N/A N/A N/A exog_s append ex N/A converged False N/A btol 1e-08 N/A params_zero N/A N/A np zeros N/A len params dtype bool N/A itr N/A range maxiter N/A N/A params_save N/A N/A params copy N/A k N/A range k_exog N/A N/A N/A params_zero N/A k N/A N/A N/A N/A surv exog_s N/A exog_s N/A k N/A params0 N/A N/A params copy N/A N/A params0 N/A k 0 N/A stx N/A range N/A N/A self surv nstrat N/A N/A v N/A N/A np dot N/A N/A N/A self surv exog_s N/A stx params0 N/A N/A N/A surv offset_s N/A stx N/A N/A offset_s_base N/A stx v N/A N/A params N/A k N/A _opt_1d N/A nploglike_funcs N/A k N/A params N/A k N/A N/A alpha N/A k L1_wt tol btol N/A N/A N/A itr 0 N/A N/A N/A np abs N/A params N/A k zero_tol N/A N/A N/A params_zero N/A k True N/A N/A params N/A k 0.0 N/A pchange N/A N/A np max N/A N/A np abs N/A params params_save N/A N/A pchange cnvrg_tol N/A N/A converged True N/A N/A params N/A N/A N/A np abs params zero_tol N/A ii N/A N/A np flatnonzero params N/A cov N/A N/A np zeros N/A k_exog k_exog dtype N/A np float64 N/A N/A N/A len ii 0 N/A N/A model N/A N/A self __class__ N/A self endog N/A N/A self exog N/A N/A N/A ii status N/A self status entry N/A self entry strata N/A self strata offset N/A self offset ties N/A self ties missing N/A self missing N/A rslt N/A N/A model fit N/A N/A cov N/A N/A N/A np ix_ ii ii N/A rslt normalized_cov_params N/A rfit N/A PHRegResults self params cov_params cov N/A N/A rfit converged converged N/A N/A rfit regularized True N/A rfit N/A loglike N/A N/A self params N/A N/A N/A 
        Returns the log partial likelihood function evaluated at
        `params`.
         N/A N/A N/A self ties breslow N/A N/A N/A N/A self breslow_loglike params N/A N/A N/A N/A self ties efron N/A N/A N/A N/A self efron_loglike params N/A score N/A N/A self params N/A N/A N/A 
        Returns the score function evaluated at `params`.
         N/A N/A N/A self ties breslow N/A N/A N/A N/A self breslow_gradient params N/A N/A N/A N/A self ties efron N/A N/A N/A N/A self efron_gradient params N/A hessian N/A N/A self params N/A N/A N/A 
        Returns the Hessian matrix of the log partial likelihood
        function evaluated at `params`.
         N/A N/A N/A self ties breslow N/A N/A N/A N/A self breslow_hessian params N/A N/A N/A N/A self efron_hessian params N/A breslow_loglike N/A N/A self params N/A N/A N/A 
        Returns the value of the log partial likelihood function
        evaluated at `params`, using the Breslow method to handle tied
        times.
         N/A surv N/A self surv N/A like 0.0 N/A stx N/A range N/A surv nstrat N/A N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A nuft N/A len uft_ix N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A xp0 0.0 N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A ix N/A uft_ix N/A i N/A like N/A N/A N/A N/A linpred N/A ix N/A N/A np log xp0 sum N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A like N/A efron_loglike N/A N/A self params N/A N/A N/A 
        Returns the value of the log partial likelihood function
        evaluated at `params`, using the Efron method to handle tied
        times.
         N/A surv N/A self surv N/A like 0.0 N/A stx N/A range N/A surv nstrat N/A N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A xp0 0.0 N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A nuft N/A len uft_ix N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp0f N/A N/A N/A e_linpred N/A N/A uft_ix N/A i sum N/A ix N/A uft_ix N/A i N/A like N/A N/A N/A linpred N/A ix sum N/A m N/A len ix N/A J N/A N/A N/A np arange m dtype N/A np float64 m N/A like N/A N/A N/A N/A np log N/A xp0 N/A J xp0f sum N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A like N/A breslow_gradient N/A N/A self params N/A N/A N/A 
        Returns the gradient of the log partial likelihood, using the
        Breslow method to handle tied times.
         N/A surv N/A self surv N/A grad 0.0 N/A stx N/A range N/A surv nstrat N/A N/A strat_ix N/A N/A surv stratum_rows N/A stx N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A nuft N/A len uft_ix N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A N/A xp0 xp1 N/A 0.0 0.0 N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A v N/A exog_s N/A N/A ix N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A ix N/A uft_ix N/A i N/A grad N/A N/A N/A N/A exog_s N/A N/A ix N/A N/A xp1 xp0 sum 0 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A v N/A exog_s N/A N/A ix N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A grad N/A efron_gradient N/A N/A self params N/A N/A N/A 
        Returns the gradient of the log partial likelihood evaluated
        at `params`, using the Efron method to handle tied times.
         N/A surv N/A self surv N/A grad 0.0 N/A stx N/A range N/A surv nstrat N/A N/A strat_ix N/A N/A surv stratum_rows N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A N/A xp0 xp1 N/A 0.0 0.0 N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A nuft N/A len uft_ix N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A v N/A exog_s N/A N/A ix N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A ixf N/A uft_ix N/A i N/A N/A N/A len ixf 0 N/A N/A v N/A exog_s N/A N/A ixf N/A N/A xp0f N/A N/A N/A e_linpred N/A ixf sum N/A xp1f N/A N/A N/A N/A N/A e_linpred N/A ixf N/A N/A N/A None v sum 0 N/A grad N/A N/A v sum 0 N/A m N/A len ixf N/A J N/A N/A N/A np arange m dtype N/A np float64 m N/A numer N/A xp1 N/A N/A np outer J xp1f N/A denom N/A xp0 N/A N/A np outer J xp0f N/A ratio N/A numer denom N/A rsum N/A N/A ratio sum 0 N/A grad rsum N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A v N/A exog_s N/A N/A ix N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A grad N/A breslow_hessian N/A N/A self params N/A N/A N/A 
        Returns the Hessian of the log partial likelihood evaluated at
        `params`, using the Breslow method to handle tied times.
         N/A surv N/A self surv N/A hess 0.0 N/A stx N/A range N/A surv nstrat N/A N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A nuft N/A len uft_ix N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A N/A xp0 xp1 xp2 N/A 0.0 0.0 0.0 N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A v N/A exog_s N/A N/A ix N/A N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A mat N/A v N/A N/A None N/A N/A N/A elx N/A e_linpred N/A ix N/A xp2 N/A N/A N/A N/A N/A mat T mat N/A elx N/A N/A None N/A N/A None sum 1 N/A m N/A len N/A uft_ix N/A i N/A hess N/A m N/A N/A xp2 xp0 N/A N/A N/A np outer xp1 xp1 N/A xp0 2 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A v N/A exog_s N/A N/A ix N/A N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A mat N/A v N/A N/A None N/A N/A N/A elx N/A e_linpred N/A ix N/A xp2 N/A N/A N/A N/A N/A mat T mat N/A elx N/A N/A None N/A N/A None sum 1 N/A N/A hess N/A efron_hessian N/A N/A self params N/A N/A N/A 
        Returns the Hessian matrix of the partial log-likelihood
        evaluated at `params`, using the Efron method to handle tied
        times.
         N/A surv N/A self surv N/A hess 0.0 N/A stx N/A range N/A surv nstrat N/A N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A N/A xp0 xp1 xp2 N/A 0.0 0.0 0.0 N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A nuft N/A len uft_ix N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A v N/A exog_s N/A N/A ix N/A N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A mat N/A v N/A N/A None N/A N/A N/A elx N/A e_linpred N/A ix N/A xp2 N/A N/A N/A N/A N/A mat T mat N/A elx N/A N/A None N/A N/A None sum 1 N/A ixf N/A uft_ix N/A i N/A N/A N/A len ixf 0 N/A N/A v N/A exog_s N/A N/A ixf N/A N/A xp0f N/A N/A N/A e_linpred N/A ixf sum N/A xp1f N/A N/A N/A N/A N/A e_linpred N/A ixf N/A N/A N/A None v sum 0 N/A mat N/A v N/A N/A None N/A N/A N/A elx N/A e_linpred N/A ixf N/A xp2f N/A N/A N/A N/A N/A mat T mat N/A elx N/A N/A None N/A N/A None sum 1 N/A m N/A len N/A uft_ix N/A i N/A J N/A N/A N/A np arange m dtype N/A np float64 m N/A c0 N/A xp0 N/A J xp0f N/A mat N/A N/A N/A xp2 N/A N/A None N/A N/A N/A N/A J N/A N/A N/A None N/A None xp2f N/A c0 N/A N/A N/A None N/A None N/A hess N/A N/A mat sum 0 N/A mat N/A N/A N/A xp1 N/A N/A None N/A N/A N/A np outer J xp1f N/A c0 N/A N/A N/A None N/A mat N/A N/A mat N/A N/A N/A N/A None N/A mat N/A N/A N/A None N/A N/A hess N/A N/A mat sum 0 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A N/A N/A len ix 0 N/A N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A v N/A exog_s N/A N/A ix N/A N/A xp1 N/A N/A N/A N/A N/A e_linpred N/A ix N/A N/A N/A None v sum 0 N/A mat N/A v N/A N/A None N/A N/A N/A elx N/A e_linpred N/A ix N/A xp2 N/A N/A N/A N/A N/A mat T mat N/A elx N/A N/A None N/A N/A None sum 1 N/A N/A hess N/A robust_covariance N/A N/A self params N/A N/A N/A 
        Returns a covariance matrix for the proportional hazards model
        regresion coefficient estimates that is robust to certain
        forms of model misspecification.

        Parameters
        ----------
        params : ndarray
            The parameter vector at which the covariance matrix is
            calculated.

        Returns
        -------
        The robust covariance matrix as a square ndarray.

        Notes
        -----
        This function uses the `groups` argument to determine groups
        within which observations may be dependent.  The covariance
        matrix is calculated using the Huber-White "sandwich" approach.
         N/A N/A N/A self groups None N/A N/A N/A ValueError `groups` must be specified to calculate the robust covariance matrix N/A hess N/A N/A self hessian params N/A score_obs N/A N/A self score_residuals params N/A grads N/A N/A N/A i g N/A enumerate N/A self groups N/A N/A N/A g grads N/A N/A N/A grads N/A g 0.0 N/A N/A grads N/A g N/A score_obs N/A N/A i N/A N/A grads N/A N/A np asarray N/A list N/A N/A grads values N/A mat N/A grads N/A N/A None N/A N/A N/A mat N/A N/A mat T mat N/A mat N/A N/A mat sum 1 N/A hess_inv N/A N/A N/A np linalg inv hess N/A cmat N/A N/A np dot hess_inv N/A N/A np dot mat hess_inv N/A cmat N/A score_residuals N/A N/A self params N/A N/A N/A 
        Returns the score residuals calculated at a given vector of
        parameters.

        Parameters
        ----------
        params : ndarray
            The parameter vector at which the score residuals are
            calculated.

        Returns
        -------
        The score residuals, returned as a ndarray having the same
        shape as `exog`.

        Notes
        -----
        Observations in a stratum with no observed events have undefined
        score residuals, and contain NaN in the returned matrix.
         N/A surv N/A self surv N/A score_resid N/A N/A np zeros N/A N/A self exog shape dtype N/A np float64 N/A mask N/A N/A np zeros N/A N/A N/A self exog shape N/A 0 dtype N/A np int32 N/A w_avg N/A N/A self weighted_covariate_averages params N/A stx N/A range N/A surv nstrat N/A N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A nuft N/A len uft_ix N/A strat_ix N/A N/A surv stratum_rows N/A stx N/A xp0 0.0 N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A at_risk_ix N/A set N/A N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A at_risk_ix N/A set ix N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A atr_ix N/A list at_risk_ix N/A leverage N/A N/A exog_s N/A N/A atr_ix N/A N/A N/A w_avg N/A stx N/A N/A i N/A N/A d N/A N/A np zeros N/A N/A exog_s shape N/A 0 N/A N/A d N/A N/A uft_ix N/A i 1 N/A dchaz N/A N/A len N/A uft_ix N/A i xp0 N/A mrp N/A N/A d N/A atr_ix N/A N/A e_linpred N/A atr_ix dchaz N/A ii N/A strat_ix N/A atr_ix N/A N/A score_resid N/A N/A ii N/A N/A leverage N/A mrp N/A N/A N/A None N/A N/A mask N/A ii 1 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A at_risk_ix N/A set ix N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A jj N/A N/A np flatnonzero N/A mask 0 N/A N/A N/A len jj 0 N/A N/A N/A score_resid N/A N/A jj N/A N/A np nan N/A score_resid N/A weighted_covariate_averages N/A N/A self params N/A N/A N/A 
        Returns the hazard-weighted average of covariate values for
        subjects who are at-risk at a particular time.

        Parameters
        ----------
        params : ndarray
            Parameter vector

        Returns
        -------
        averages : list of ndarrays
            averages[stx][i,:] is a row vector containing the weighted
            average values (for all the covariates) of at-risk
            subjects a the i^th largest observed failure time in
            stratum `stx`, using the hazard multipliers as weights.

        Notes
        -----
        Used to calculate leverages and score residuals.
         N/A surv N/A self surv N/A averages N/A N/A N/A xp0 xp1 N/A 0.0 0.0 N/A stx N/A range N/A surv nstrat N/A N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A nuft N/A len uft_ix N/A average_s N/A N/A np zeros N/A N/A len uft_ix N/A N/A exog_s shape N/A 1 dtype N/A np float64 N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A linpred N/A N/A linpred max N/A e_linpred N/A N/A np exp linpred N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A np dot N/A e_linpred N/A ix N/A exog_s N/A N/A ix N/A N/A N/A average_s N/A N/A i N/A N/A xp1 xp0 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A xp1 N/A N/A np dot N/A e_linpred N/A ix N/A exog_s N/A N/A ix N/A N/A N/A N/A averages append average_s N/A averages N/A baseline_cumulative_hazard N/A N/A self params N/A N/A N/A 
        Estimate the baseline cumulative hazard and survival
        functions.

        Parameters
        ----------
        params : ndarray
            The model parameters.

        Returns
        -------
        A list of triples (time, hazard, survival) containing the time
        values and corresponding cumulative hazard and survival
        function values for each stratum.

        Notes
        -----
        Uses the Nelson-Aalen estimator.
         N/A surv N/A self surv N/A rslt N/A N/A stx N/A range N/A surv nstrat N/A N/A uft N/A N/A surv ufailt N/A stx N/A uft_ix N/A N/A surv ufailt_ix N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A nuft N/A len uft_ix N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A e_linpred N/A N/A np exp linpred N/A xp0 0.0 N/A h0 N/A N/A np zeros nuft dtype N/A np float64 N/A i N/A N/A range nuft N/A -1 N/A N/A ix N/A N/A N/A surv risk_enter N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A ix N/A uft_ix N/A i N/A N/A h0 N/A i N/A N/A len ix xp0 N/A ix N/A N/A N/A surv risk_exit N/A stx N/A i N/A xp0 N/A N/A N/A e_linpred N/A ix sum N/A cumhaz N/A N/A N/A np cumsum h0 h0 N/A current_strata_surv N/A N/A np exp N/A cumhaz N/A N/A N/A rslt append N/A uft cumhaz current_strata_surv N/A rslt N/A baseline_cumulative_hazard_function N/A N/A self params N/A N/A N/A 
        Returns a function that calculates the baseline cumulative
        hazard function for each stratum.

        Parameters
        ----------
        params : ndarray
            The model parameters.

        Returns
        -------
        A dict mapping stratum names to the estimated baseline
        cumulative hazard function.
         scipy.interpolate interp1d N/A surv N/A self surv N/A base N/A N/A self baseline_cumulative_hazard params N/A cumhaz_f N/A N/A stx N/A range N/A surv nstrat N/A N/A time_h N/A N/A base N/A stx N/A 0 N/A cumhaz N/A N/A base N/A stx N/A 1 N/A time_h N/A N/A np r_ N/A N/A N/A N/A np inf time_h N/A np inf N/A cumhaz N/A N/A np r_ N/A N/A N/A cumhaz N/A 0 cumhaz N/A cumhaz N/A -1 N/A func N/A interp1d time_h cumhaz kind zero N/A N/A cumhaz_f N/A N/A N/A N/A self surv stratum_names N/A stx func N/A cumhaz_f N/A predict N/A N/A self params exog cov_params endog strata offset pred_type N/A None None None None None lhr N/A N/A pred_type N/A N/A pred_type lower N/A N/A pred_type N/A lhr hr surv cumhaz N/A N/A msg N/A Type %s not allowed for prediction pred_type N/A N/A ValueError msg bunch N/A N/A N/A predicted_values None N/A standard_errors None N/A N/A ret_val N/A bunch N/A exog_provided True N/A N/A exog None N/A N/A exog N/A self exog N/A exog_provided False N/A lhr N/A N/A np dot exog params N/A N/A offset None N/A N/A lhr offset N/A N/A N/A N/A N/A self offset None N/A exog_provided N/A N/A lhr N/A self offset N/A N/A pred_type lhr N/A N/A N/A ret_val predicted_values lhr N/A N/A cov_params None N/A N/A mat N/A N/A np dot exog cov_params N/A va N/A N/A N/A mat exog sum 1 N/A N/A ret_val standard_errors N/A N/A np sqrt va N/A ret_val N/A hr N/A N/A np exp lhr N/A N/A pred_type hr N/A N/A N/A ret_val predicted_values hr N/A ret_val N/A N/A N/A endog None exog_provided N/A N/A msg If `exog` is provided `endog` must be provided. N/A N/A ValueError msg N/A N/A N/A N/A endog None N/A exog_provided N/A N/A endog N/A self endog N/A N/A strata None N/A N/A N/A exog_provided N/A N/A N/A self surv nstrat 1 N/A N/A N/A ValueError `strata` must be provided N/A N/A N/A self strata None N/A N/A strata N/A N/A N/A N/A N/A self surv stratum_names N/A 0 N/A len endog N/A N/A strata N/A self strata N/A cumhaz N/A N/A np nan N/A N/A np ones N/A len endog dtype N/A np float64 N/A stv N/A N/A np unique strata N/A bhaz N/A N/A self baseline_cumulative_hazard_function params N/A stx stv N/A N/A ix N/A N/A np flatnonzero N/A strata stx N/A func N/A bhaz N/A stx N/A N/A cumhaz N/A ix N/A N/A func N/A endog N/A ix N/A hr N/A ix N/A N/A pred_type cumhaz N/A N/A N/A ret_val predicted_values cumhaz N/A N/A N/A pred_type surv N/A N/A N/A ret_val predicted_values N/A N/A np exp N/A cumhaz N/A ret_val N/A N/A N/A predict __doc__ N/A _predict_docstring N/A cov_params_doc _predict_cov_params_docstring get_distribution N/A N/A self params N/A N/A N/A 
        Returns a scipy distribution object corresponding to the
        distribution of uncensored endog (duration) values for each
        case.

        Parameters
        ----------
        params : arrayh-like
            The model proportional hazards model parameters.

        Returns
        -------
        A list of objects of type scipy.stats.distributions.rv_discrete

        Notes
        -----
        The distributions are obtained from a simple discrete estimate
        of the survivor function that puts all mass on the observed
        failure times wihtin a stratum.
         scipy.stats.distributions rv_discrete N/A surv N/A self surv N/A bhaz N/A N/A self baseline_cumulative_hazard params N/A N/A pk xk N/A N/A N/A N/A stx N/A range N/A N/A self surv nstrat N/A N/A exog_s N/A N/A surv exog_s N/A stx N/A linpred N/A N/A np dot exog_s params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A e_linpred N/A N/A np exp linpred N/A pts N/A N/A bhaz N/A stx N/A 0 N/A ichaz N/A N/A np outer e_linpred N/A N/A bhaz N/A stx N/A 1 N/A usurv N/A N/A np exp N/A ichaz N/A usurv N/A N/A np concatenate N/A usurv N/A N/A np zeros N/A N/A N/A usurv shape N/A 0 1 axis 1 N/A probs N/A N/A N/A np diff usurv 1 N/A N/A N/A pk append probs N/A N/A N/A xk append N/A N/A np outer N/A N/A np ones N/A N/A probs shape N/A 0 pts N/A mxc N/A max N/A N/A N/A x shape N/A 1 N/A x xk N/A k N/A range N/A N/A self surv nstrat N/A N/A N/A N/A N/A N/A xk N/A k shape N/A 1 mxc N/A N/A xk1 N/A N/A np zeros N/A N/A N/A xk shape N/A 0 mxc N/A pk1 N/A N/A np zeros N/A N/A N/A pk shape N/A 0 mxc N/A N/A xk1 N/A N/A N/A N/A mxc xk N/A N/A pk1 N/A N/A N/A N/A mxc pk N/A N/A N/A xk N/A k N/A pk N/A k N/A xk1 pk1 N/A xka N/A N/A np nan N/A N/A np zeros N/A N/A len N/A self endog mxc dtype N/A np float64 N/A pka N/A N/A N/A np ones N/A N/A len N/A self endog mxc dtype N/A np float64 mxc N/A stx N/A range N/A N/A self surv nstrat N/A N/A ix N/A N/A N/A self surv stratum_rows N/A stx N/A N/A xka N/A N/A ix N/A N/A xk N/A stx N/A N/A pka N/A N/A ix N/A N/A pk N/A stx N/A dist N/A rv_discrete_float xka pka N/A dist N/A N/A PHRegResults N/A N/A base LikelihoodModelResults N/A N/A 
    Class to contain results of fitting a Cox proportional hazards
    survival model.

    PHregResults inherits from statsmodels.LikelihoodModelResults

    Parameters
    ----------
    See statsmodels.LikelihoodModelResults

    Returns
    -------
    **Attributes**

    model : class instance
        PHreg model instance that called fit.
    normalized_cov_params : array
        The sampling covariance matrix of the estimates
    params : array
        The coefficients of the fitted model.  Each coefficient is the
        log hazard ratio corresponding to a 1 unit difference in a
        single covariate while holding the other covariates fixed.
    bse : array
        The standard errors of the fitted parameters.

    See Also
    --------
    statsmodels.LikelihoodModelResults
     __init__ N/A N/A self model params cov_params covariance_type N/A naive N/A N/A N/A self covariance_type covariance_type N/A N/A self df_resid N/A model df_resid N/A N/A self df_model N/A model df_model N/A N/A N/A N/A super PHRegResults self __init__ model params normalized_cov_params cov_params N/A standard_errors N/A N/A self N/A N/A N/A 
        Returns the standard errors of the parameter estimates.
         N/A N/A N/A np sqrt N/A N/A np diag N/A N/A self cov_params N/A cache_readonly bse N/A N/A self N/A N/A N/A 
        Returns the standard errors of the parameter estimates.
         N/A N/A self standard_errors N/A cache_readonly get_distribution N/A N/A self N/A N/A N/A 
        Returns a scipy distribution object corresponding to the
        distribution of uncensored endog (duration) values for each
        case.

        Returns
        -------
        A list of objects of type scipy.stats.distributions.rv_discrete

        Notes
        -----
        The distributions are obtained from a simple discrete estimate
        of the survivor function that puts all mass on the observed
        failure times wihtin a stratum.
         N/A N/A N/A N/A self model get_distribution N/A self params N/A predict N/A N/A self endog exog strata offset transform pred_type N/A None None None None True lhr N/A N/A N/A N/A N/A super PHRegResults self predict exog exog transform transform cov_params N/A N/A self cov_params endog endog strata strata offset offset pred_type pred_type N/A N/A N/A predict __doc__ N/A _predict_docstring N/A cov_params_doc _group_stats N/A N/A self groups N/A N/A N/A 
        Descriptive statistics of the groups.
         N/A gsize N/A N/A x groups N/A N/A N/A x gsize N/A N/A N/A gsize N/A x 0 N/A N/A gsize N/A x 1 N/A gsize N/A N/A np asarray N/A list N/A N/A gsize values N/A N/A N/A N/A gsize min N/A N/A gsize max N/A N/A gsize mean N/A len gsize N/A weighted_covariate_averages N/A N/A self N/A N/A N/A 
        The average covariate values within the at-risk set at each
        event time point, weighted by hazard.
         N/A N/A N/A N/A self model weighted_covariate_averages N/A self params N/A cache_readonly score_residuals N/A N/A self N/A N/A N/A 
        A matrix containing the score residuals.
         N/A N/A N/A N/A self model score_residuals N/A self params N/A cache_readonly baseline_cumulative_hazard N/A N/A self N/A N/A N/A 
        A list (corresponding to the strata) containing the baseline
        cumulative hazard function evaluated at the event points.
         N/A N/A N/A N/A self model baseline_cumulative_hazard N/A self params N/A cache_readonly baseline_cumulative_hazard_function N/A N/A self N/A N/A N/A 
        A list (corresponding to the strata) containing function
        objects that calculate the cumulative hazard function.
         N/A N/A N/A N/A self model baseline_cumulative_hazard_function N/A self params N/A cache_readonly schoenfeld_residuals N/A N/A self N/A N/A N/A 
        A matrix containing the Schoenfeld residuals.

        Notes
        -----
        Schoenfeld residuals for censored observations are set to zero.
         N/A surv N/A N/A self model surv N/A w_avg N/A self weighted_covariate_averages N/A sch_resid N/A N/A np nan N/A N/A np ones N/A N/A N/A self model exog shape dtype N/A np float64 N/A stx N/A range N/A surv nstrat N/A N/A uft N/A N/A surv ufailt N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A time_s N/A N/A surv time_s N/A stx N/A strat_ix N/A N/A surv stratum_rows N/A stx N/A ii N/A N/A np searchsorted uft time_s N/A jj N/A N/A np flatnonzero N/A ii N/A len uft N/A N/A sch_resid N/A N/A N/A strat_ix N/A jj N/A N/A N/A exog_s N/A N/A jj N/A N/A N/A w_avg N/A stx N/A N/A N/A ii N/A jj N/A N/A jj N/A N/A np flatnonzero N/A N/A N/A self model status 0 N/A N/A sch_resid N/A N/A jj N/A N/A np nan N/A sch_resid N/A cache_readonly martingale_residuals N/A N/A self N/A N/A N/A 
        The martingale residuals.
         N/A surv N/A N/A self model surv N/A mart_resid N/A N/A np nan N/A N/A np ones N/A len N/A N/A self model endog dtype N/A np float64 N/A cumhaz_f_list N/A self baseline_cumulative_hazard_function N/A stx N/A range N/A surv nstrat N/A N/A cumhaz_f N/A cumhaz_f_list N/A stx N/A exog_s N/A N/A surv exog_s N/A stx N/A time_s N/A N/A surv time_s N/A stx N/A linpred N/A N/A np dot exog_s N/A self params N/A N/A N/A surv offset_s None N/A N/A linpred N/A N/A surv offset_s N/A stx N/A e_linpred N/A N/A np exp linpred N/A ii N/A N/A surv stratum_rows N/A stx N/A chaz N/A cumhaz_f time_s N/A N/A mart_resid N/A ii N/A N/A N/A N/A self model status N/A ii N/A e_linpred chaz N/A mart_resid N/A cache_readonly summary N/A N/A self yname xname title alpha N/A None None None 0.05 N/A N/A 
        Summarize the proportional hazards regression results.

        Parameters
        -----------
        yname : string, optional
            Default is `y`
        xname : list of strings, optional
            Default is `x#` for ## in p the number of regressors
        title : string, optional
            Title for the top table. If not None, then this replaces
            the default title
        alpha : float
            significance level for the confidence intervals

        Returns
        -------
        smry : Summary instance
            this holds the summary tables and text, which can be
            printed or converted to various output formats.

        See Also
        --------
        statsmodels.iolib.summary.Summary : class to hold summary
            results
         statsmodels.iolib summary2 statsmodels.compat.collections OrderedDict N/A smry N/A N/A summary2 Summary N/A float_format %8.3f N/A info N/A OrderedDict N/A N/A info N/A Model: PH Reg N/A N/A yname None N/A N/A yname N/A N/A self model endog_names N/A N/A info N/A Dependent variable: yname N/A N/A info N/A Ties: N/A N/A N/A N/A self model ties capitalize N/A N/A info N/A Sample size: N/A str N/A N/A N/A self model surv n_obs N/A N/A info N/A Num. events: N/A str N/A int N/A sum N/A N/A self model status N/A N/A N/A N/A self model groups None N/A N/A N/A mn mx avg num N/A N/A self _group_stats N/A N/A self model groups N/A N/A info N/A Num groups: N/A %.0f num N/A N/A info N/A Min group size: N/A %.0f mn N/A N/A info N/A Max group size: N/A %.0f mx N/A N/A info N/A Avg group size: N/A %.1f avg N/A N/A N/A N/A self model strata None N/A N/A N/A mn mx avg num N/A N/A self _group_stats N/A N/A self model strata N/A N/A info N/A Num strata: N/A %.0f num N/A N/A info N/A Min stratum size: N/A %.0f mn N/A N/A info N/A Max stratum size: N/A %.0f mx N/A N/A info N/A Avg stratum size: N/A %.1f avg N/A N/A N/A smry add_dict info align l float_format float_format N/A param N/A N/A summary2 summary_params self alpha alpha N/A param N/A N/A param rename columns N/A Coef. Std.Err. log HR log HR SE N/A N/A N/A param insert 2 HR N/A N/A np exp N/A param N/A log HR N/A a N/A [%.3f N/A alpha 2 N/A N/A N/A param loc N/A N/A N/A a N/A N/A np exp N/A N/A param loc N/A N/A N/A a N/A a N/A %.3f] N/A 1 N/A alpha 2 N/A N/A N/A param loc N/A N/A N/A a N/A N/A np exp N/A N/A param loc N/A N/A N/A a N/A N/A xname None N/A N/A N/A param index xname N/A N/A N/A smry add_df param float_format float_format N/A N/A N/A smry add_title title title results self N/A N/A N/A smry add_text Confidence intervals are for the hazard ratios N/A dstrat N/A N/A N/A N/A self model surv nstrat_orig N/A N/A N/A self model surv nstrat N/A N/A dstrat 0 N/A N/A N/A dstrat 1 N/A N/A N/A N/A smry add_text 1 stratum dropped for having no events N/A N/A N/A N/A smry add_text N/A %d strata dropped for having no events dstrat N/A N/A N/A N/A self model entry None N/A N/A n_entry N/A sum N/A N/A N/A self model entry 0 N/A N/A n_entry 1 N/A N/A N/A N/A smry add_text 1 observation has a positive entry time N/A N/A N/A N/A smry add_text N/A %d observations have positive entry times n_entry N/A N/A N/A N/A self model groups None N/A N/A N/A N/A smry add_text Standard errors account for dependence within groups N/A N/A hasattr self regularized N/A N/A N/A N/A smry add_text Standard errors do not account for the regularization N/A smry N/A N/A rv_discrete_float N/A object N/A N/A 
    A class representing a collection of discrete distributions.

    Parameters
    ----------
    xk : 2d array-like
        The support points, should be non-decreasing within each
        row.
    pk : 2d array-like
        The probabilities, should sum to one within each row.

    Notes
    -----
    Each row of `xk`, and the corresponding row of `pk` describe a
    discrete distribution.

    `xk` and `pk` should both be two-dimensional ndarrays.  Each row
    of `pk` should sum to 1.

    This class is used as a substitute for scipy.distributions.
    rv_discrete, since that class does not allow non-integer support
    points, or vectorized operations.

    Only a limited number of methods are implemented here compared to
    the other scipy distribution classes.
     __init__ N/A N/A self xk pk N/A N/A N/A N/A self xk xk N/A N/A self pk pk N/A N/A self cpk N/A N/A np cumsum N/A self pk axis 1 N/A rvs N/A N/A self N/A N/A N/A 
        Returns a random sample from the discrete distribution.

        A vector is returned containing a single draw from each row of
        `xk`, using the probabilities of the corresponding row of `pk`
         N/A n N/A N/A N/A self xk shape N/A 0 N/A u N/A N/A N/A np random uniform size n N/A ix N/A N/A N/A N/A self cpk N/A u N/A N/A N/A None sum 1 N/A ii N/A N/A np arange n dtype N/A np int32 N/A N/A N/A self xk N/A N/A ii ix N/A mean N/A N/A self N/A N/A N/A 
        Returns a vector containing the mean values of the discrete
        distributions.

        A vector is returned containing the mean value of each row of
        `xk`, using the probabilities in the corresponding row of
        `pk`.
         N/A N/A N/A N/A N/A self xk N/A self pk sum 1 N/A var N/A N/A self N/A N/A N/A 
        Returns a vector containing the variances of the discrete
        distributions.

        A vector is returned containing the variance for each row of
        `xk`, using the probabilities in the corresponding row of
        `pk`.
         N/A mn N/A N/A self mean N/A xkc N/A N/A self xk N/A mn N/A N/A N/A None N/A N/A N/A N/A N/A self pk N/A N/A N/A self xk xkc 2 sum 1 N/A std N/A N/A self N/A N/A N/A 
        Returns a vector containing the standard deviations of the
        discrete distributions.

        A vector is returned containing the standard deviation for
        each row of `xk`, using the probabilities in the corresponding
        row of `pk`.
         N/A N/A N/A np sqrt N/A N/A self var N/A N/A _opt_1d N/A N/A funcs start L1_wt tol N/A N/A N/A 
    Optimize a L1-penalized smooth one-dimensional function of a
    single variable.

    Parameters
    ----------
    funcs : tuple of functions
        funcs[0] is the objective function to be minimized.  funcs[1]
        and funcs[2] are, respectively, the first and second
        derivatives of the smooth part of funcs[0] (i.e. excluding the
        L1 penalty).
    start : real
        A starting value for the function argument
    L1_wt : non-negative real
        The weight for the L1 penalty function.
    tol : non-negative real
        A convergence threshold.

    Returns
    -------
    The argmin of the objective function.
     N/A x start N/A f N/A N/A funcs N/A 0 x N/A b N/A N/A funcs N/A 1 x N/A c N/A N/A funcs N/A 2 x N/A d N/A b N/A c x N/A N/A L1_wt N/A N/A np abs d N/A N/A 0.0 N/A N/A N/A d 0 N/A N/A x N/A N/A L1_wt b c N/A N/A N/A d 0 N/A N/A x N/A N/A L1_wt b c N/A f1 N/A N/A funcs N/A 0 x N/A N/A f1 N/A f 1e-10 N/A N/A N/A brent N/A funcs N/A 0 brack N/A N/A x 0.2 N/A x 0.2 tol tol N/A x N/A