Prepare the MNIST Training Data
Understand how to prepare the MNIST dataset by properly rescaling and shifting its input values. This lesson helps you get the data into the right format and range for training and querying your neural network effectively.
We'll cover the following...
Data preprocessing
We’ve learned how to get data out of the MNIST data files and disentangle it so we can make sense of it and visualize it. We want to train our neural network with this data, but we need to think about preparing this data before we throw it at our neural network.
We saw earlier that neural networks work better if the input data and the output values are of the right shape, so that they stay within the comfort zone of the network node activation functions.
Rescaling
First we need to rescale the input color values from the larger range to the much smaller range . We’ve ...