How to find wrong prediction cases in test set (CNNs using Keras)
<p>I'm using MNIST example with 60000 training image and 10000 testing image. How do I find which of the 10000 testing image that has an incorrect classification/prediction?</p>

<p>Simply use <code>model.predict_classes()</code> and compare the output with true labes. i.e:</p>

<pre><code>incorrects = np.nonzero(model.predict_class(X_test) != y_test)
</code></pre>

<p>to get indices of incorrect predictions</p>

python machine-learning theano convolution keras