16.03.2021 Views

Advanced Deep Learning with Keras

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introducing Advanced Deep Learning with Keras

Multilayer perceptrons (MLPs)

The first of the three networks we will be looking at is known as a multilayer

perceptrons or (MLPs). Let's suppose that the objective is to create a neural network

for identifying numbers based on handwritten digits. For example, when the input

to the network is an image of a handwritten number 8, the corresponding prediction

must also be the digit 8. This is a classic job of classifier networks that can be trained

using logistic regression. To both train and validate a classifier network, there must

be a sufficiently large dataset of handwritten digits. The Modified National Institute

of Standards and Technology dataset or MNIST [1] for short, is often considered

as the Hello World! of deep learning and is a suitable dataset for handwritten digit

classification.

Before we discuss the multilayer perceptron model, it's essential that we understand

the MNIST dataset. A large number of the examples in this book use the MNIST

dataset. MNIST is used to explain and validate deep learning theories because

the 70,000 samples it contains are small, yet sufficiently rich in information:

Figure 1.3.1: Example images from the MNIST dataset. Each image is 28 × 28-pixel grayscale.

MNIST dataset

MNIST is a collection of handwritten digits ranging from the number 0 to 9. It

has a training set of 60,000 images, and 10,000 test images that are classified into

corresponding categories or labels. In some literature, the term target or ground

truth is also used to refer to the label.

[ 6 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!