Skip to content

Instantly share code, notes, and snippets.

@siakon89
Last active March 29, 2020 15:39
Show Gist options
  • Save siakon89/c1160565614879f7bf269cf4123027e6 to your computer and use it in GitHub Desktop.
Save siakon89/c1160565614879f7bf269cf4123027e6 to your computer and use it in GitHub Desktop.
class_names = ['T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat',
'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot']
plt.figure(figsize=(10,10))
for i in range(25):
plt.subplot(5,5,i+1)
plt.xticks([])
plt.yticks([])
plt.grid(False)
plt.imshow(train_images[i], cmap=plt.cm.binary)
plt.xlabel(class_names[train_labels[i]])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment