Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareNotEq NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad decorator_list decorator_list
N/A N/A numpy np neupy algorithms algorithms.memory.data * base BaseTestCase utils vectors_for_testing N/A zero_hint N/A N/A np array N/A N/A 0 1 0 0 N/A one_hint N/A N/A np array N/A N/A 1 0 0 0 BAMTestCase N/A BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super BAMTestCase self setUp N/A N/A self data N/A N/A np concatenate N/A zero one axis 0 N/A N/A self hints N/A N/A np concatenate N/A zero_hint one_hint axis 0 N/A test_input_data_validation N/A N/A self N/A N/A N/A dhnet N/A N/A algorithms DiscreteBAM N/A N/A dhnet weight N/A N/A np array N/A N/A 0 1 N/A 1 0 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A dhnet train N/A N/A np array N/A -1 1 N/A N/A np array N/A 0 1 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A dhnet train N/A N/A np array N/A 0 1 N/A N/A np array N/A -1 1 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A dhnet energy N/A N/A np array N/A -1 1 N/A N/A np array N/A 0 1 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A dhnet energy N/A N/A np array N/A 0 1 N/A N/A np array N/A -1 1 N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A dhnet predict N/A N/A np array N/A -1 1 N/A test_discrete_bam_sync N/A N/A self N/A N/A N/A bamnet N/A N/A algorithms DiscreteBAM mode sync N/A N/A N/A bamnet train N/A self data N/A self hints N/A data_before N/A N/A N/A self data copy N/A hints_before N/A N/A N/A self hints copy N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict half_zero N/A 1 zero_hint N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_output half_one N/A 1 one_hint N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_input zero_hint N/A 0 zero N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_input one_hint N/A 0 one N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_input N/A N/A one_hint ravel N/A 0 one N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_output N/A N/A half_one ravel N/A 1 one_hint N/A input_matrix N/A N/A np vstack N/A one zero N/A output_matrix N/A N/A np vstack N/A one_hint zero_hint N/A output_matrix_before N/A N/A output_matrix copy N/A input_matrix_before N/A N/A input_matrix copy N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_input output_matrix N/A 0 input_matrix N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict input_matrix N/A 1 output_matrix N/A N/A N/A N/A np testing assert_array_equal N/A self data data_before N/A N/A N/A N/A np testing assert_array_equal N/A self hints hints_before N/A N/A N/A N/A np testing assert_array_equal output_matrix output_matrix_before N/A N/A N/A N/A np testing assert_array_equal input_matrix input_matrix_before N/A test_discrete_bam_async N/A N/A self N/A N/A N/A bamnet N/A N/A algorithms DiscreteBAM mode async n_times 400 N/A data_before N/A N/A N/A self data copy N/A hints_before N/A N/A N/A self hints copy N/A N/A N/A bamnet train N/A self data N/A self hints N/A input_matrix N/A N/A np vstack N/A one zero N/A output_matrix N/A N/A np vstack N/A one_hint zero_hint N/A output_matrix_before N/A N/A output_matrix copy N/A input_matrix_before N/A N/A input_matrix copy N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_input output_matrix N/A 0 input_matrix N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict_output input_matrix N/A 1 output_matrix N/A N/A N/A N/A np testing assert_array_equal N/A self data data_before N/A N/A N/A N/A np testing assert_array_equal N/A self hints hints_before N/A N/A N/A N/A np testing assert_array_equal output_matrix output_matrix_before N/A N/A N/A N/A np testing assert_array_equal input_matrix input_matrix_before N/A test_argument_in_predict_method N/A N/A self N/A N/A N/A dhnet N/A N/A algorithms DiscreteBAM mode async n_times 1 N/A N/A N/A dhnet train N/A self data N/A self hints N/A N/A N/A self assertTrue N/A N/A np any N/A one N/A N/A N/A dhnet predict_output half_one N/A 0 N/A N/A N/A N/A np testing assert_array_almost_equal one N/A N/A N/A dhnet predict_output half_one n_times 100 N/A 0 N/A test_energy_function N/A N/A self N/A N/A N/A input_vector N/A N/A np array N/A N/A 1 0 0 1 1 0 0 N/A output_vector N/A N/A np array N/A N/A 1 0 N/A dhnet N/A N/A algorithms DiscreteBAM N/A N/A N/A dhnet train input_vector output_vector N/A N/A N/A self assertEqual -7 N/A N/A dhnet energy input_vector output_vector N/A N/A N/A self assertEqual 0 N/A N/A dhnet energy N/A N/A np array N/A N/A 0 0 0 0 0 0 0 N/A N/A np array N/A N/A 0 0 N/A N/A N/A self assertEqual -7 N/A N/A dhnet energy N/A N/A np array N/A N/A 0 1 1 0 0 1 1 N/A N/A np array N/A N/A 0 1 N/A N/A N/A self assertEqual -7 N/A N/A dhnet energy N/A N/A np array N/A 0 1 1 0 0 1 1 N/A N/A np array N/A 0 1 N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A np array N/A -7 0 N/A N/A dhnet energy N/A N/A np array N/A N/A 0 1 1 0 0 1 1 N/A 0 0 0 0 0 0 0 N/A N/A np array N/A N/A 0 1 N/A 0 0 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 DiscreteBAM N/A N/A np array N/A 1 0 0 1 N/A N/A np array N/A 1 0 is_feature1d False N/A test_predict_different_inputs N/A N/A self N/A N/A N/A bamnet N/A N/A algorithms DiscreteBAM N/A data N/A N/A np array N/A N/A 1 0 0 1 N/A target N/A N/A np array N/A N/A 1 0 N/A N/A N/A bamnet train data target N/A test_vectors N/A vectors_for_testing N/A N/A data reshape N/A data size is_feature1d False N/A test_vector test_vectors N/A N/A N/A N/A N/A np testing assert_array_almost_equal N/A N/A N/A bamnet predict test_vector N/A 1 target N/A N/A