Module Import alias identifier Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd ListLoad Num ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Return TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Num For NameStore Call NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad ExtSlice Slice BinOpMult BinOpAdd NameLoad Num NameLoad Slice Num SubscriptLoad NameLoad ExtSlice Slice BinOpMult NameLoad NameLoad Slice Num keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad ExtSlice Slice BinOpMult BinOpAdd NameLoad Num NameLoad Index Num SubscriptLoad NameLoad ExtSlice Slice BinOpMult NameLoad NameLoad Index Num keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice BinOpMult NameLoad NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Slice Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice BinOpMult NameLoad NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad Index Num If Call NameLoad NameLoad Str body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore NameLoad Assign NameStore BinOpDiv NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list NameLoad FunctionDef arguments args NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list
N/A N/A numpy np N/A pickle N/A math sklearn.preprocessing PolynomialFeatures scipy.special legendre DatasetLoader N/A object N/A load N/A N/A input_data_file N/A N/A N/A load file N/A X N/A N/A Y N/A N/A N/A open input_data_file f N/A N/A line f N/A N/A data N/A N/A line split N/A x N/A N/A 1 N/A N/A float v N/A v N/A data N/A -1 N/A N/A N/A X append x N/A N/A N/A Y append N/A float N/A data N/A -1 N/A N/A N/A N/A np array X N/A N/A np array Y N/A staticmethod featureTransform N/A N/A X mode degree N/A polynomial 1 N/A N/A poly N/A PolynomialFeatures degree N/A process_X N/A N/A poly fit_transform X N/A N/A mode legendre N/A N/A lege N/A legendre degree N/A process_X N/A lege process_X N/A process_X N/A staticmethod N/A CrossValidator N/A object N/A __init__ N/A N/A self N/A N/A N/A init N/A N/A self models N/A N/A N/A self avg_errors N/A N/A addModel N/A N/A self model N/A N/A N/A N/A N/A N/A self models append model N/A N/A self models N/A excute N/A N/A self N/A N/A N/A model N/A self models N/A N/A avg_error 0 N/A validate_num N/A N/A math ceil N/A N/A len N/A model train_Y 10 N/A N/A model train_Y N/A N/A np reshape N/A model train_Y N/A -1 1 N/A dataset N/A N/A np concatenate N/A N/A model train_X N/A model train_Y axis 1 N/A N/A N/A N/A np random shuffle dataset N/A error 0 N/A i N/A range 10 N/A N/A N/A model train_X N/A N/A np concatenate N/A N/A dataset N/A N/A N/A N/A i 1 validate_num N/A -1 N/A dataset N/A N/A N/A i validate_num N/A -1 axis 0 N/A N/A model train_Y N/A N/A np concatenate N/A N/A dataset N/A N/A N/A N/A i 1 validate_num N/A -1 N/A dataset N/A N/A N/A i validate_num N/A -1 axis 0 N/A N/A N/A model init_W N/A N/A N/A model train N/A validate_X N/A dataset N/A N/A N/A i validate_num N/A N/A i 1 validate_num N/A -1 N/A validate_Y N/A dataset N/A N/A N/A i validate_num N/A N/A i 1 validate_num N/A -1 N/A N/A hasattr model class_list N/A N/A error N/A error N/A N/A model calculate_avg_error_all_class validate_X validate_Y N/A model W N/A N/A error N/A error N/A N/A model calculate_avg_error validate_X validate_Y N/A model W N/A N/A model train_X N/A dataset N/A N/A N/A -1 N/A N/A model train_Y N/A dataset N/A N/A N/A -1 N/A dataset None N/A avg_error N/A error 10 N/A N/A N/A N/A self avg_errors append avg_error N/A N/A self avg_errors N/A getMinAVGError N/A N/A self N/A N/A N/A N/A min N/A self avg_errors N/A getBestModel N/A N/A self N/A N/A N/A min_error_index N/A N/A N/A self avg_errors index N/A min N/A self avg_errors N/A N/A N/A self models N/A min_error_index N/A N/A Serializer N/A object N/A serialize N/A N/A need_serialize N/A N/A N/A serialize N/A N/A N/A pickle dumps need_serialize protocol 0 N/A staticmethod deserialize N/A N/A pickle_serialized N/A N/A N/A ddserialize N/A N/A N/A pickle loads pickle_serialized N/A staticmethod N/A