Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 5, 2020 06:36
Show Gist options
  • Save amankharwal/1cdc40b67c33db683f98388b38c86f46 to your computer and use it in GitHub Desktop.
Save amankharwal/1cdc40b67c33db683f98388b38c86f46 to your computer and use it in GitHub Desktop.
# Plotting the first 10 images
fig, ax = plt.subplots(2,5)
fig.set_size_inches(10, 10)
k = 0
for i in range(2):
for j in range(5):
ax[i,j].imshow(training_images[k].reshape(28, 28) , cmap = "gray")
k += 1
plt.tight_layout()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment