Handwritten digits

Let's start with the typical Hello World of machine learning with images--the MNIST handwritten numeral classification exercise.

The MNIST database being used has 60,000 images for training and another 10,000 for testing. It was originally collected by Chris Burges and Corinna Cortes and enhanced by Yann LeCun. You can find out more about the dataset on Yann LeCun's website (http://yann.lecun.com/exdb/mnist/).

TensorFlow conveniently comes with a test script demonstrating a convolutional neural network using the MSNIST handwritten, available at https://github.com/tensorflow/models/blob/master/tutorials/image/mnist/convolutional.py.

Let's modify this script to allow TensorBoard usage. If you wish to peek ahead, download ...

Get Machine Learning with TensorFlow 1.x 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.