Loading CIFAR-10

Loading the dataset is almost exactly the same, as Keras also provides a loader for CIFAR-10, using the following code:

from keras.datasets import cifar10
def
load_data():
(X_train, y_train), (X_test, y_test) = cifar10.load_data()
X_train = (X_train.astype(np.float32) - 127.5) / 127.5
return X_train
..................Content has been hidden....................

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