Loading and exploring CIFAR-10

Let's start off by importing the required packages for this implementation:

%matplotlib inlineimport matplotlib.pyplot as pltimport tensorflow as tfimport numpy as npimport timefrom datetime import timedeltaimport os# Importing a helper module for the functions of the Inception model.import inception

Next up, we need to load another helper script that we can use to download the processing CIFAR-10 dataset:

import cifar10#importing number of classes of CIFAR-10from cifar10 import num_classes

If you haven't done this already, you need to set the path for CIFAR-10. This path will be used by the cifar-10.py script to persist the dataset:

cifar10.data_path = "data/CIFAR-10/"The CIFAR-10 dataset is about 170 ...

Get Deep Learning By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.