60000 train samples
10000 test samples
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
dense_1 (Dense) (None, 512) 401920
_________________________________________________________________
activation_1 (Activation) (None, 512) 0
_________________________________________________________________
dropout_1 (Dropout) (None, 512) 0
_________________________________________________________________
dense_2 (Dense) (None, 512) 262656
_________________________________________________________________
activation_2 (Activation) (None, 512) 0
_________________________________________________________________
dropout_2 (Dropout) (None, 512) 0
_________________________________________________________________
dense_3 (Dense) (None, 10) 5130
_________________________________________________________________
activation_3 (Activation) (None, 10) 0
=================================================================
Total params: 669,706.0
Trainable params: 669,706.0
Non-trainable params: 0.0
_________________________________________________________________
Train on 60000 samples, validate on 10000 samples
INFO:tensorflow:Summary name dense_1/kernel:0 is illegal; using dense_1/kernel_0 instead.
INFO:tensorflow:Summary name dense_1/kernel:0 is illegal; using dense_1/kernel_0 instead.
INFO:tensorflow:Summary name dense_1/bias:0 is illegal; using dense_1/bias_0 instead.
INFO:tensorflow:Summary name dense_1/bias:0 is illegal; using dense_1/bias_0 instead.
INFO:tensorflow:Summary name dense_2/kernel:0 is illegal; using dense_2/kernel_0 instead.
INFO:tensorflow:Summary name dense_2/kernel:0 is illegal; using dense_2/kernel_0 instead.
INFO:tensorflow:Summary name dense_2/bias:0 is illegal; using dense_2/bias_0 instead.
INFO:tensorflow:Summary name dense_2/bias:0 is illegal; using dense_2/bias_0 instead.
INFO:tensorflow:Summary name dense_3/kernel:0 is illegal; using dense_3/kernel_0 instead.
INFO:tensorflow:Summary name dense_3/kernel:0 is illegal; using dense_3/kernel_0 instead.
INFO:tensorflow:Summary name dense_3/bias:0 is illegal; using dense_3/bias_0 instead.
INFO:tensorflow:Summary name dense_3/bias:0 is illegal; using dense_3/bias_0 instead.
Epoch 1/10
60000/60000 [==============================] - 8s - loss: 0.2432 - acc: 0.9248 - val_loss: 0.1103 - val_acc: 0.9659
Epoch 2/10
60000/60000 [==============================] - 10s - loss: 0.1011 - acc: 0.9690 - val_loss: 0.0946 - val_acc: 0.9730
Epoch 3/10
60000/60000 [==============================] - 11s - loss: 0.0748 - acc: 0.9776 - val_loss: 0.0814 - val_acc: 0.9758
Epoch 4/10
60000/60000 [==============================] - 10s - loss: 0.0600 - acc: 0.9820 - val_loss: 0.1093 - val_acc: 0.9694
Epoch 5/10
60000/60000 [==============================] - 10s - loss: 0.0510 - acc: 0.9857 - val_loss: 0.0825 - val_acc: 0.9790
Epoch 6/10
60000/60000 [==============================] - 10s - loss: 0.0446 - acc: 0.9869 - val_loss: 0.0891 - val_acc: 0.9789
Epoch 7/10
60000/60000 [==============================] - 11s - loss: 0.0391 - acc: 0.9885 - val_loss: 0.0816 - val_acc: 0.9804
Epoch 8/10
60000/60000 [==============================] - 10s - loss: 0.0355 - acc: 0.9895 - val_loss: 0.0869 - val_acc: 0.9819
Epoch 9/10
60000/60000 [==============================] - 10s - loss: 0.0322 - acc: 0.9905 - val_loss: 0.0935 - val_acc: 0.9811
Epoch 10/10
60000/60000 [==============================] - 10s - loss: 0.0282 - acc: 0.9919 - val_loss: 0.0878 - val_acc: 0.9809
Test score: 0.0877838852293
Test accuracy: 0.9809