Skip to Content
Keras to Kubernetes
book

Keras to Kubernetes

by Dattaraj Rao
May 2019
Intermediate to advanced content levelIntermediate to advanced
320 pages
8h 51m
English
Wiley
Content preview from Keras to Kubernetes

CHAPTER 5Advanced Deep Learning

In the previous chapter, we started building deep neural network models for analyzing images using Keras and TensorFlow. Now in this chapter we will start building models that extract complex visual patterns. We will go beyond the MLP into Convolutional Neural Networks (CNN) and show how they are much more effective in building deep models specifically for image analysis. We will use different data in this chapter—a fashion items images dataset. Hopefully it will be interesting and you can try on some of your own image data.

The Rise of Deep Learning Models

In the previous chapter, we saw one type of neural network called the multi‐layered perceptron (MLP). These were the most common types of neural network used in the 1990s. However, these networks have many limitations.

MLP is good for a limited set of features, such as the less than one thousand in our example. As the number of features increases, since all neurons in dense layers are connected to all neurons in the next layer, the weights become very large. This makes the model difficult to train and requires a lot of processing power. As we add more layers with neurons in MLP, we don't see the effect of these layers much in the accuracy. So, adding more dense layers adds to complexity and training time, but doesn't really provide much benefit.

Also, we saw in our example that a 28×28 image was changed into a one‐dimensional 784‐element vector. This became the input layer for our network. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automated Machine Learning on AWS

Automated Machine Learning on AWS

Trenton Potgieter
Elegant SciPy

Elegant SciPy

Juan Nunez-Iglesias, Stéfan van der Walt, Harriet Dashnow
O'Reilly Strata Data and AI Superstream

O'Reilly Strata Data and AI Superstream

O'Reilly Media, Inc., Shubhankar Jain, Jin Yang, Manasi Vartak, Chris Fregly, Liqun Shao, Kai Wahner, Dave Nielsen, Micah Wylde, Austin Bennett

Publisher Resources

ISBN: 9781119564836Purchase book