O'Reilly logo

Deep Learning By Example by Ahmed Menshawy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required