_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
simple_rnn_5 (SimpleRNN) (None, 256) 72960
_________________________________________________________________
dense_5 (Dense) (None, 10) 2570
_________________________________________________________________
activation_5 (Activation) (None, 10) 0
=================================================================
Total params: 75,530
Trainable params: 75,530
Non-trainable params: 0
_________________________________________________________________
Epoch 1/20
60000/60000 [==============================] - 5s 79us/step - loss: 0.6501 - acc: 0.8246
Epoch 2/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.2712 - acc: 0.9230
Epoch 3/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.2014 - acc: 0.9413
Epoch 4/20
60000/60000 [==============================] - 4s 75us/step - loss: 0.1639 - acc: 0.9524
Epoch 5/20
60000/60000 [==============================] - 4s 75us/step - loss: 0.1385 - acc: 0.9599
Epoch 6/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.1209 - acc: 0.9645
Epoch 7/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.1079 - acc: 0.9681
Epoch 8/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0974 - acc: 0.9711
Epoch 9/20
60000/60000 [==============================] - 4s 75us/step - loss: 0.0877 - acc: 0.9745
Epoch 10/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0818 - acc: 0.9758
Epoch 11/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0757 - acc: 0.9777
Epoch 12/20
60000/60000 [==============================] - 4s 75us/step - loss: 0.0712 - acc: 0.9790
Epoch 13/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0662 - acc: 0.9799
Epoch 14/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0615 - acc: 0.9820
Epoch 15/20
60000/60000 [==============================] - 5s 83us/step - loss: 0.0587 - acc: 0.9833
Epoch 16/20
60000/60000 [==============================] - 5s 81us/step - loss: 0.0554 - acc: 0.9838
Epoch 17/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0526 - acc: 0.9846
Epoch 18/20
60000/60000 [==============================] - 5s 78us/step - loss: 0.0497 - acc: 0.9854
Epoch 19/20
60000/60000 [==============================] - 4s 74us/step - loss: 0.0461 - acc: 0.9866
Epoch 20/20
60000/60000 [==============================] - 5s 75us/step - loss: 0.0453 - acc: 0.9868
10000/10000 [==============================] - 1s 55us/step
Test accuracy: 97.9%