September 2019
Intermediate to advanced
420 pages
10h 29m
English
The easiest way to obtain the MNIST dataset is by 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 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