Back on your main computer now, open the first Jupyter Notebook we created in this chapter—the one that we loaded the CIFAR dataset with. In this major experiment, we will take the CIFAR dataset, create a deep convolution neural network, and then run it on our GPU-based virtual machine.
Application
Getting the data
To start with, we will take our CIFAR images and create a dataset with them. Unlike previously, we are going to preserve the pixel structure—that is, in rows and columns. First, load all the batches into a list:
import os
import numpy as np
data_folder = os.path.join(os.path.expanduser("~"), "Data", "cifar-10-batches-py")
batches = []
for i in range(1, 6):
batch_filename = os.path.join(data_folder, "data_batch_...