Reading the dataset

Load the MNIST dataset:

data = input_data.read_data_sets("data/mnist",one_hot=True)

Let's plot one image:

plt.imshow(data.train.images[13].reshape(28,28),cmap="gray")

The input image looks as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset