Module Assign NameStore Str ImportFrom alias Import alias identifier ImportFrom alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Print Str Print TupleLoad Str NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr orelse Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index ListLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore BinOpSub BinOpMult Num Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num For NameStore Call NameLoad Num AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpMult NameLoad Call NameLoad NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Lambda arguments args NameParam defaults Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Print Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index ListLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num attr Lambda arguments args NameParam defaults Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Print Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print TupleLoad Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print TupleLoad Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list
N/A N/A __author__ Jiarui Xu learnpy.models.Model Model N/A pandas pd learnpy.models.ModelUtil * N/A operator N/A time NeuralNetwork N/A Model N/A __init__ N/A N/A self data class_column the_num_iter N/A N/A N/A 
        Constructor for model Neural Network Model
        :param data: default data
        :param class_column: the label column
        :return:
         N/A Neural Network Model created! N/A N/A Number of Iteration is the_num_iter N/A N/A self num_iter the_num_iter N/A N/A self predict_summary N/A N/A N/A self fit_report N/A N/A N/A self data data N/A N/A self class_column class_column N/A col_data N/A N/A self data N/A class_column N/A N/A self class_list N/A unique_list col_data N/A N/A self class_func N/A N/A N/A self class_list N/A 0 N/A N/A self class_list N/A 1 0 1 N/A N/A N/A self num_cols N/A self cat_cols N/A get_both_columns N/A self data class_column N/A N/A self data N/A numericalize_data N/A self data N/A self num_cols N/A self class_column N/A self class_func N/A N/A self stats_info N/A stats_info N/A self data N/A self num_cols N/A self class_column N/A self class_func N/A N/A self syn0 None N/A N/A self data N/A normalize_data N/A self data N/A N/A info_print Data is normalized. Use fit() to train on the data set. N/A fit N/A N/A self data N/A N/A N/A 
        Fit the model onto a given data set
        :param data:
        :return:
         N/A N/A data None N/A N/A N/A N/A self train_self N/A N/A N/A train_self N/A N/A self N/A N/A N/A 
        Train the model on the data we have in the model
        :return:
         N/A feature_set N/A N/A N/A N/A self data N/A N/A self num_cols as_matrix N/A label_array N/A N/A N/A N/A self data N/A N/A N/A self class_column as_matrix N/A N/A N/A N/A np random seed 651862182 N/A syn0 N/A N/A 2 N/A N/A N/A np random random N/A N/A N/A feature_set shape N/A 1 1 1 N/A i N/A range 0 N/A self num_iter N/A N/A l0 feature_set N/A l1 N/A nonlin N/A N/A np dot l0 syn0 N/A l1_error N/A label_array l1 N/A l1_delta N/A l1_error N/A nonlin l1 True N/A syn0 N/A N/A np dot N/A l0 T l1_delta N/A N/A self syn0 syn0 N/A output N/A list N/A N/A N/A N/A N/A pd DataFrame l1 N/A 0 map N/A N/A N/A x N/A N/A get_class x N/A target N/A list N/A N/A N/A pd DataFrame label_array N/A 0 N/A N/A N/A self fit_report N/A output output N/A N/A N/A self fit_report N/A target target N/A Fit done. N/A N/A N/A self report N/A predict N/A N/A self testing_data N/A N/A N/A 
        Apply the model on the given data
        :param data:
        :return:
         N/A testing_data N/A transform_data testing_data N/A self num_cols N/A self class_column N/A self stats_info N/A self class_func N/A feature_set N/A N/A N/A testing_data N/A N/A self num_cols as_matrix N/A label_array N/A N/A N/A testing_data N/A N/A N/A self class_column as_matrix N/A l1 N/A nonlin N/A N/A np dot feature_set N/A self syn0 N/A output N/A list N/A N/A N/A N/A N/A pd DataFrame l1 N/A 0 map N/A N/A N/A x N/A N/A get_class x N/A target N/A list N/A N/A N/A pd DataFrame label_array N/A 0 N/A N/A N/A self predict_summary N/A output output N/A N/A N/A self predict_summary N/A target target N/A Testing done. N/A N/A N/A self summary N/A summary N/A N/A self N/A N/A N/A 
        Summarize the prediction diagnostics
        :return:
         N/A N/A The testing accuracy is:  N/A calculate_acc N/A N/A self predict_summary N/A output N/A N/A self predict_summary N/A target N/A report N/A N/A self N/A N/A N/A 
        Report the training accuracies
        :return:
         N/A N/A The training accuracy is:  N/A calculate_acc N/A N/A self fit_report N/A output N/A N/A self fit_report N/A target N/A N/A