January 2019
Intermediate to advanced
386 pages
11h 13m
English
In Chapter 3, Deep Learning Fundamentals, we tried to classify the CIFAR-10 images with a fully-connected network, but we only managed 51% test accuracy. Let's see if we can do better with all the new things we've learned. This time we'll use CNN with data augmentation.
import kerasfrom keras.datasets import cifar10from keras.layers import Conv2D, MaxPooling2Dfrom keras.layers import Dense, Dropout, Activation, Flatten, BatchNormalizationfrom keras.models import Sequentialfrom keras.preprocessing.image import ImageDataGenerator