October 2018
Intermediate to advanced
252 pages
6h 49m
English
Let's load this dataset using the Keras APIs and print the shape and size:
from keras.datasets import cifar10(X_train, y_train), (X_test, y_test) = cifar10.load_data()print("X_train shape: " + str(X_train.shape))print(y_train.shape)print(X_test.shape)print(y_test.shape)
The first time, it will download the file from the preceding site:
Downloading data from https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz8192/170498071 [..............................] - ETA: 22:4340960/170498071 [..............................] - ETA: 9:12 106496/170498071 [..............................] - ETA: 5:27237568/170498071 [..............................] - ETA: 3:11286720/170498071 [..............................] - ETA: 4:39...170418176/170498071 ...