Skip to content

Instantly share code, notes, and snippets.

@avloss
Created March 10, 2017 17:51
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 avloss/5e1c218c8728b87c4501681604349225 to your computer and use it in GitHub Desktop.
Save avloss/5e1c218c8728b87c4501681604349225 to your computer and use it in GitHub Desktop.
%matplotlib inline
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data

mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
number = mnist.train.next_batch(1)[0]

plt.imshow(number.reshape(28,28))
Extracting MNIST_data/train-images-idx3-ubyte.gz
Extracting MNIST_data/train-labels-idx1-ubyte.gz
Extracting MNIST_data/t10k-images-idx3-ubyte.gz
Extracting MNIST_data/t10k-labels-idx1-ubyte.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment