Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Deep Learning Quick Reference

You're reading from  Deep Learning Quick Reference

Product type Book
Published in Mar 2018
Publisher Packt
ISBN-13 9781788837996
Pages 272 pages
Edition 1st Edition
Languages
Author (1):
Mike Bernico Mike Bernico
Profile icon Mike Bernico

Table of Contents (15) Chapters

Preface The Building Blocks of Deep Learning Using Deep Learning to Solve Regression Problems Monitoring Network Training Using TensorBoard Using Deep Learning to Solve Binary Classification Problems Using Keras to Solve Multiclass Classification Problems Hyperparameter Optimization Training a CNN from Scratch Transfer Learning with Pretrained CNNs Training an RNN from scratch Training LSTMs with Word Embeddings from Scratch Training Seq2Seq Models Using Deep Reinforcement Learning Generative Adversarial Networks Other Books You May Enjoy

Training a convolutional neural network in Keras

Now that we've covered the fundamentals of convolutional neural networks, it's time to build one. In this case study, we will be taking on a well-known problem known as CIFAR-10. This dataset was created by Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton.

Input

The CIFAR-10 dataset is made up of 60,000 32 x 32 color images that belong to 10 classes, with 6,000 images per class. I'll be using 50,000 images as a training set, 5,000 images as a validation set, and 5,000 images as a test set.

The input tensor layer for the convolutional neural network will be (N, 32, 32, 3), which we will pass to the build_network function as we have previously done. The following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}