Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created March 4, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/21e4785a24a3f9826555d60440e648dd to your computer and use it in GitHub Desktop.
Save NMZivkovic/21e4785a24a3f9826555d60440e648dd to your computer and use it in GitHub Desktop.
plt.figure(figsize=(15, 15))
for i in range(10):
ax = plt.subplot(2, 10, i + 1)
plt.imshow(X_test[i, :, :, 0], cmap='gray')
plt.title("Digit: {}\nPredicted: {}".format(np.argmax(y_test[i]), np.argmax(predictions[i])))
plt.axis('off')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment