Skip to content

Instantly share code, notes, and snippets.

@vrjkmr
Created September 4, 2017 02:57
Show Gist options
  • Save vrjkmr/768f626661427b8748e75c9f2e0bfd58 to your computer and use it in GitHub Desktop.
Save vrjkmr/768f626661427b8748e75c9f2e0bfd58 to your computer and use it in GitHub Desktop.
# Shapes of training set
print("Training set (images) shape: {shape}".format(shape=fashion_mnist.train.images.shape))
print("Training set (labels) shape: {shape}".format(shape=fashion_mnist.train.labels.shape))
# Shapes of test set
print("Test set (images) shape: {shape}".format(shape=fashion_mnist.test.images.shape))
print("Test set (labels) shape: {shape}".format(shape=fashion_mnist.test.labels.shape))
'''
Output:
Training set (images) shape: (55000, 784)
Training set (labels) shape: (55000, 10)
Test set (images) shape: (10000, 784)
Test set (labels) shape: (10000, 10)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment