Book Image

Hands-On Deep Learning for Images with TensorFlow

By : Will Ballard
Book Image

Hands-On Deep Learning for Images with TensorFlow

By: Will Ballard

Overview of this book

TensorFlow is Google’s popular offering for machine learning and deep learning, quickly becoming a favorite tool for performing fast, efficient, and accurate deep learning tasks. Hands-On Deep Learning for Images with TensorFlow shows you the practical implementations of real-world projects, teaching you how to leverage TensorFlow’s capabilities to perform efficient image processing using the power of deep learning. With the help of this book, you will get to grips with the different paradigms of performing deep learning such as deep neural nets and convolutional neural networks, followed by understanding how they can be implemented using TensorFlow. By the end of this book, you will have mastered all the concepts of deep learning and their implementation with TensorFlow and Keras.
Table of Contents (7 chapters)

Turning categories into tensors

In the previous section, we looked at turning images into tensors for machine learning, and in this section, we will look at turning the output values, the categories, into tensors for machine learning.

We will cover output classes, what it means to make a discrete prediction, the concept of one-hot encoding; and then we'll visualize what one-hot encoding looks like as an image, and then we'll recap with a data preparation cookbook, which you should use to be able to deal with all kinds of image data for machine learning.

But for now, let's talk about output. When we're talking about digits, there's 0 through 9, so there's ten different classes, and not classes in the object-oriented sense, but classes in the label sense. Now, with these labels being from 0 to 9 as individual digits, the predictions we want to make...