Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Deep Learning for Images with TensorFlow

You're reading from  Hands-On Deep Learning for Images with TensorFlow

Product type Book
Published in Jul 2018
Publisher Packt
ISBN-13 9781789538670
Pages 96 pages
Edition 1st Edition
Languages
Author (1):
Will Ballard Will Ballard
Profile icon Will Ballard

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...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}