Book Image

Deep Learning By Example

Book Image

Deep Learning By Example

Overview of this book

Deep learning is a popular subset of machine learning, and it allows you to build complex models that are faster and give more accurate predictions. This book is your companion to take your first steps into the world of deep learning, with hands-on examples to boost your understanding of the topic. This book starts with a quick overview of the essential concepts of data science and machine learning which are required to get started with deep learning. It introduces you to Tensorflow, the most widely used machine learning library for training deep learning models. You will then work on your first deep learning problem by training a deep feed-forward neural network for digit classification, and move on to tackle other real-world problems in computer vision, language processing, sentiment analysis, and more. Advanced deep learning models such as generative adversarial networks and their applications are also covered in this book. By the end of this book, you will have a solid understanding of all the essential concepts in deep learning. With the help of the examples and code provided in this book, you will be equipped to train your own deep learning models with more confidence.
Table of Contents (18 chapters)
16
Implementing Fish Recognition

MNIST dataset analysis

In this section, we are going to get our hands dirty by implementing a classifier for handwritten images. This kind of implementation could be considered as the Hello world! of neural networks.

MNIST is a widely used dataset for benchmarking machine learning techniques. The dataset contains a set of handwritten digits like the ones shown here:

Figure 3: Sample digits from the MNIST dataset

So, the dataset includes handwritten images and their corresponding labels as well.

In this section, we are going to train a basic model on these images and the goal will be to tell which digit is handwritten in the input images.

Also, you'll find out that we will be able to accomplish this classification task using very few lines of code, but the idea behind this implementation is to understand the basic bits and pieces for building a neural network solution...