May 2019
Intermediate to advanced
452 pages
12h 16m
English
First, let's look at how look at how this works in Keras. In the following code, we import it as a module from the tensorflow library:
from tensorflow import kerasfashion_mnist = keras.datasets.fashion_mnist(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
The third line from the preceding code will download the datasets:
Downloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-labels-idx1-ubyte.gz32768/29515 [=================================] - 0s 1us/stepDownloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/train-images-idx3-ubyte.gz26427392/26421880 [==============================] - 3s 0us/stepDownloading ...
Read now
Unlock full access