Skip to content

Instantly share code, notes, and snippets.

@EniasCailliau
Last active August 23, 2018 10:36
Show Gist options
  • Save EniasCailliau/51b2802d1f08a5a684b78231cc1f4791 to your computer and use it in GitHub Desktop.
Save EniasCailliau/51b2802d1f08a5a684b78231cc1f4791 to your computer and use it in GitHub Desktop.
labels_lookup = ['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(labels_lookup[train_labels[i]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment