An introduction to TensorFlow

In this chapter, we'll go deeper into TensorFlow and see how we can build a general-purpose image classifier using its deep learning method.

This will be an extension of what we learned in Chapter 2, Handwritten Digit Recognition with scikit-learn and TensorFlow, where we learned how to classify handwritten digits. However, this method is quite a bit more powerful, as it will work on general images of people, animals, food, everyday objects, and so on.

To start, let's talk a little bit about what TensorFlow does, and the general workflow of TensorFlow.

To begin, what is a tensor? Wikipedia states this:

"In mathematics, tensors are geometric objects that describe linear relations between geometric vectors, scalars, ...

Get Computer Vision Projects with OpenCV and Python 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.