Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Deep Learning for Images with TensorFlow

You're reading from   Hands-On Deep Learning for Images with TensorFlow Build intelligent computer vision applications using TensorFlow and Keras

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781789538670
Length 96 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Will Ballard Will Ballard
Author Profile Icon Will Ballard
Will Ballard
Arrow right icon
View More author details
Toc

Turning images into tensors

In the previous section, we learned a bit about what a tensor is. Now, we're going to use that knowledge to prepare image data as tensors for machine learning. First, we'll ask a question: why are we working with data in floating points? Then, we will learn the difference between samples and the data points at the end of them. Finally, we will normalize the data for use in machine learning.

So, why a floating point? Well, the real reason is that machine learning is fundamentally a math optimization problem, and when we're working with floating points, the computer is trying to optimize a series of mathematical relationships to find learned functions that can then predict outputs. So, preparing our data for machine learning does involve reformatting normal binary data, such as an image, into a series of floating point numbers, which isn...

You have been reading a chapter from
Hands-On Deep Learning for Images with TensorFlow
Published in: Jul 2018
Publisher: Packt
ISBN-13: 9781789538670
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 €18.99/month. Cancel anytime