July 2017
Intermediate to advanced
382 pages
9h 13m
English
The easiest way to obtain the MNIST dataset is using Keras:
In [1]: from keras.datasets import mnist... (X_train, y_train), (X_test, y_test) = mnist.load_data()Out[1]: Using TensorFlow backend. Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz
This will download the data from the Amazon Cloud (might take a while depending on your internet connection) and automatically split the data into training and test sets.
This data comes in a format that we are already familiar with:
In [2]: X_train.shape, ...
Read now
Unlock full access