The TensorFlow library and digit recognition

For the exercises in this chapter, we will be using the TensorFlow library open-sourced by Google (available at Installation instructions vary by operating system. Additionally, for Linux systems, it is possible to leverage both the CPU and graphics processing unit (GPU) on your computer to run deep learning models. Because many of the steps in training (such as the multiplications required to update a grid of weight values) involve matrix operations, they can be readily parallelized (and thus accelerated) by using a GPU. However, the TensorFlow library will work on CPU as well, so don't worry if you don't have access to an Nvidia GPU card.

The MNIST data

The data we will ...

Get Mastering Predictive Analytics with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.