Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad CompareEq NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num decorator_list decorator_list
N/A __future__ division N/A numpy np sklearn datasets sklearn metrics sklearn.cross_validation StratifiedKFold train_test_split neupy algorithms base BaseTestCase PNNTestCase N/A BaseTestCase N/A test_handle_errors N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A N/A N/A algorithms PNN verbose False train N/A N/A np array N/A N/A 0 N/A 0 N/A N/A np array N/A 0 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A N/A N/A algorithms PNN verbose False train N/A N/A np array N/A N/A 0 N/A 0 N/A N/A np array N/A N/A 0 N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A N/A N/A algorithms PNN verbose False train_epoch N/A N/A N/A self assertRaises ValueError N/A N/A grnet N/A N/A algorithms PNN verbose False N/A N/A N/A grnet train N/A N/A np array N/A N/A 0 N/A 0 N/A N/A np array N/A 0 N/A N/A N/A grnet predict N/A N/A np array N/A N/A 0 N/A test_simple_pnn N/A N/A self N/A N/A N/A dataset N/A N/A datasets load_iris N/A data N/A dataset data N/A target N/A dataset target N/A test_data_size 10 N/A skfold N/A StratifiedKFold target test_data_size N/A avarage_result 0 N/A N/A train test skfold N/A N/A N/A x_train x_test N/A N/A data N/A train N/A data N/A test N/A N/A y_train y_test N/A N/A target N/A train N/A target N/A test N/A nw N/A N/A algorithms PNN verbose False std 0.1 N/A N/A N/A nw train x_train y_train N/A result N/A N/A nw predict x_test N/A avarage_result N/A sum N/A y_test result N/A N/A N/A self assertEqual N/A avarage_result test_data_size 14.4 N/A test_digit_prediction N/A N/A self N/A N/A N/A dataset N/A N/A datasets load_digits N/A N/A x_train x_test y_train y_test N/A train_test_split N/A dataset data N/A dataset target train_size 0.7 N/A nw N/A N/A algorithms PNN verbose False std 10 N/A N/A N/A nw train x_train y_train N/A result N/A N/A nw predict x_test N/A N/A N/A self assertAlmostEqual N/A N/A metrics accuracy_score y_test result 0.9889 places 4 N/A test_predict_probability N/A N/A self N/A N/A N/A dataset N/A N/A datasets load_digits N/A N/A x_train x_test y_train y_test N/A train_test_split N/A dataset data N/A dataset target train_size 0.7 N/A x_train_before N/A N/A x_train copy N/A x_test_before N/A N/A x_test copy N/A y_train_before N/A N/A y_train copy N/A number_of_classes N/A len N/A N/A np unique N/A dataset target N/A pnnet N/A N/A algorithms PNN verbose False std 10 N/A N/A N/A pnnet train x_train y_train N/A result N/A N/A pnnet predict_proba x_test N/A n_test_inputs N/A N/A x_test shape N/A 0 N/A N/A N/A self assertEqual N/A result shape N/A n_test_inputs number_of_classes N/A total_classes_prob N/A N/A np round N/A N/A result sum axis 1 10 N/A N/A N/A N/A np testing assert_array_equal total_classes_prob N/A N/A np ones n_test_inputs N/A old_result N/A N/A result copy N/A N/A N/A N/A np testing assert_array_equal x_train x_train_before N/A N/A N/A N/A np testing assert_array_equal x_test x_test_before N/A N/A N/A N/A np testing assert_array_equal y_train y_train_before N/A N/A x_train N/A N/A N/A 0 N/A result N/A N/A pnnet predict_proba x_test N/A total_classes_prob N/A N/A np round N/A N/A result sum axis 1 10 N/A N/A N/A N/A np testing assert_array_almost_equal result old_result N/A test_train_different_inputs N/A N/A self N/A N/A N/A N/A N/A self assertInvalidVectorTrain N/A N/A algorithms PNN verbose False N/A N/A np array N/A 1 2 3 N/A N/A np array N/A 1 0 1 N/A test_predict_different_inputs N/A N/A self N/A N/A N/A pnnet N/A N/A algorithms PNN verbose False N/A data N/A N/A N/A np array N/A N/A 1 2 3 T N/A target N/A N/A N/A np array N/A N/A 1 0 1 T N/A N/A N/A pnnet train data target N/A N/A N/A self assertInvalidVectorPred pnnet N/A N/A data ravel N/A N/A target ravel decimal 2 N/A N/A