<s> from neupy import algorithms <EOL> from data import simple_classification <EOL> from base import BaseTestCase <EOL> class AdamTestCase ( BaseTestCase ) : <EOL> def test_simple_adam ( self ) : <EOL> x_train , _ , y_train , _ = simple_classification ( ) <EOL> mnet = algorithms . Adam ( <EOL> ( <NUM_LIT:10> , <NUM_LIT:20> , <NUM_LIT:1> ) , <EOL> step = <NUM_LIT> , <EOL> batch_size = '<STR_LIT>' , <EOL> verbose = False , <EOL> epsilon = <NUM_LIT> , <EOL> beta1 = <NUM_LIT> , <EOL> beta2 = <NUM_LIT> , <EOL> ) <EOL> mnet . train ( x_train , y_train , epochs = <NUM_LIT:100> ) <EOL> self . assertAlmostEqual ( <NUM_LIT> , mnet . errors . last ( ) , places = <NUM_LIT:2> ) </s>
