Module Import alias identifier FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore DictComp NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults IfExp Call NameLoad NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpSub BinOpMult NameLoad NameLoad NameLoad Return SubscriptLoad BinOpDiv BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult Num Call NameLoad NameLoad Index TupleLoad Num Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore BinOpSub NameLoad BinOpMult BinOpMult BinOpDiv NameLoad NameLoad AttributeLoad NameLoad attr BinOpSub BinOpMult NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr IfExp NameLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpDiv Num BinOpAdd Num Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index CompareGtE NameLoad Num Num Return BinOpMult Call AttributeLoad NameLoad attr CompareEq NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad BinOpSub Num NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Num NameLoad NameLoad Return SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpDiv BinOpMult AttributeLoad NameLoad attr BinOpSub Call NameLoad BinOpMult NameLoad NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd BinOpDiv BinOpSub BinOpMult UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad BinOpSub Num NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Num NameLoad NameLoad BinOpMult BinOpMult BinOpDiv NameLoad BinOpMult Num NameLoad AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore BinOpAdd BinOpDiv BinOpMult AttributeLoad NameLoad attr BinOpSub Call NameLoad NameLoad NameLoad NameLoad BinOpMult BinOpDiv NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad keyword Num ExtSlice Index AttributeLoad NameLoad attr Slice Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad keyword Num ExtSlice Index AttributeLoad NameLoad attr Slice Return TupleLoad NameLoad NameLoad BinOpDiv BinOpSub NameLoad NameLoad NameLoad decorator_list
N/A N/A numpy np load_data N/A N/A file_name N/A N/A N/A data N/A N/A np loadtxt file_name delimiter , N/A X N/A data N/A N/A N/A -1 N/A y N/A data N/A N/A N/A -1 N/A N/A X y N/A transform_arguments N/A N/A tranformation N/A N/A dec N/A N/A f N/A N/A wrapper N/A N/A N/A args kwargs N/A N/A t_args N/A map tranformation args N/A t_kwargs N/A k N/A tranformation v N/A N/A k v N/A N/A kwargs iteritems N/A N/A f t_args t_kwargs N/A N/A wrapper N/A N/A dec N/A N/A matrix_args N/A transform_arguments N/A N/A N/A arg N/A N/A N/A np matrix arg copy False N/A matrix_args_array_only N/A transform_arguments N/A N/A N/A arg N/A N/A N/A isinstance arg N/A np ndarray N/A N/A np matrix arg copy False arg J_liner_regression N/A N/A X y theta N/A N/A N/A temp N/A N/A X theta y N/A N/A N/A N/A N/A temp T temp N/A 2 N/A len y N/A N/A 0 0 N/A matrix_args gradient_descent N/A N/A cost_function X y iterations intial_theta alpha N/A N/A N/A m N/A len y N/A theta intial_theta N/A J_history N/A N/A _ N/A xrange iterations N/A N/A theta N/A theta N/A N/A N/A alpha m N/A X T N/A N/A X theta y N/A N/A N/A J_history append N/A cost_function X y theta N/A N/A theta J_history N/A matrix_args_array_only add_zero_feature N/A N/A X axis N/A 1 N/A N/A N/A N/A np append N/A N/A np ones N/A axis N/A N/A N/A X shape N/A 0 1 N/A 1 N/A N/A X shape N/A 1 X axis axis N/A sigmoid N/A N/A z N/A N/A N/A N/A 1 N/A 1 N/A N/A np exp N/A z N/A lr_accuracy N/A N/A X y theta N/A N/A N/A theta N/A theta N/A N/A N/A N/A np newaxis N/A temp N/A N/A N/A sigmoid N/A N/A np dot X theta ravel N/A p N/A N/A np zeros N/A len X N/A N/A p N/A N/A temp 0.5 1 N/A N/A N/A N/A np mean N/A p N/A N/A y ravel 100 N/A cf_lr N/A N/A theta X y N/A N/A N/A theta N/A theta T N/A m N/A len y N/A Z N/A sigmoid N/A X theta N/A J N/A N/A N/A N/A N/A y T N/A N/A np log Z N/A N/A N/A 1 y T N/A N/A np log N/A 1 Z m N/A N/A J N/A N/A 0 0 N/A matrix_args gf_lr N/A N/A theta X y N/A N/A N/A theta N/A theta T N/A m N/A len y N/A res N/A N/A N/A X T N/A N/A sigmoid N/A X theta y m N/A N/A res A1 N/A matrix_args cf_lr_reg N/A N/A theta X y lambda_coef N/A N/A N/A theta N/A theta T N/A m N/A len y N/A lambda_coef N/A float lambda_coef N/A Z N/A sigmoid N/A X theta N/A J N/A N/A N/A N/A N/A N/A y T N/A N/A np log Z N/A N/A N/A 1 y T N/A N/A np log N/A 1 Z m N/A N/A N/A lambda_coef N/A 2 m N/A theta T theta N/A N/A J N/A N/A 0 0 N/A matrix_args_array_only gf_lr_reg N/A N/A theta X y lambda_coef N/A N/A N/A theta N/A N/A np matrix N/A theta T copy True N/A lambda_coef N/A float lambda_coef N/A m N/A len y N/A Z N/A X theta N/A N/A theta N/A N/A 0 0 0 N/A res N/A N/A N/A N/A X T N/A N/A sigmoid Z y m N/A N/A lambda_coef m theta N/A N/A res A1 N/A matrix_args_array_only feature_normalize N/A N/A X N/A N/A N/A mu N/A N/A N/A np mean X axis 0 N/A N/A N/A np newaxis N/A N/A sigma N/A N/A N/A np std X axis 0 N/A N/A N/A np newaxis N/A N/A N/A mu sigma N/A N/A X mu sigma N/A