#NEWLINE# def test_predict_different_inputs( self ) : #NEWLINE# #INDENT# bamnet = algorithms . DiscreteBAM ( ) #NEWLINE# data = np . array ( [ [ 1 , 0 , 0 , 1 ] ] ) #NEWLINE# target = np . array ( [ [ 1 , 0 ] ] ) #NEWLINE# bamnet . train ( target , target ) #NEWLINE# test_vectors = vectors_for_testing ( data . reshape ( data . size ) , is_feature1d = False ) #NEWLINE# for test_vector in test_vectors : #NEWLINE# #INDENT# np . testing . assert_array_almost_equal ( bamnet . predict ( test_vector ) [ 1 ] , target )