Caffe can not only print overall accuracy, but also per-class accuracy.
In Keras log, there's only overall accuracy. It's hard for me to calculate the separate class accuracy.
Epoch 168/200
0s - loss: 0.0495 - acc: 0.9818 - val_loss: 0.0519 - val_acc: 0.9796
Epoch 169/200
0s - loss: 0.0519 - acc: 0.9796 - val_loss: 0.0496 - val_acc: 0.9815
Epoch 170/200
0s - loss: 0.0496 - acc: 0.9815 - val_loss: 0.0514 - val_acc: 0.9801
Anybody who knows how to output per-class accuracy in keras?
Precision & recall are more useful measures for multi-class classification (see definitions). Following the Keras MNIST CNN example (10-class classification), you can get the per-class measures using
classification_report
from sklearn.metrics:Here is the result: