title: How to output per-class accuracy in Keras？
body: <p>Caffe can not only print overall accuracy, but also per-class accuracy.</p>
  <p>In Keras log, there's only overall accuracy. It's hard for me to calculate the separate class accuracy.</p>
  <pre><code>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
  </code></pre>
  <p>Anybody who knows how to output per-class accuracy in keras?</p>