#NEWLINE# def test_conjgrad( self ) : #NEWLINE# #INDENT# nw = algorithms . ConjugateGradient ( nw . connection , step = 1 , error = 'mse' , shuffle_data = True , verbose = False , update_function = 'fletcher_reeves' ) #NEWLINE# nw . train ( simple_input_train , simple_target_train , epochs = 300 ) #NEWLINE# result = nw . predict ( simple_input_train ) #NEWLINE# norm = np . linalg . norm ( ( result - simple_target_train ) ) #NEWLINE# self . assertAlmostEqual ( 0.01 , norm , places = 3 )