Evaluate the Performance of the Neural Network
Explore how to evaluate your neural network's performance by training on 60,000 MNIST images and testing on 10,000 images. Learn to calculate accuracy scores, interpret results, and compare your network's effectiveness to established benchmarks. This lesson helps you understand practical performance testing for your Python-built neural network.
We'll cover the following...
Training and testing with a full dataset
Previously, we added a simple code to work out the fraction of correct answers. Let’s see what this updated code produces:
If we get a performance score of 0.7, that means we achieved 70% accuracy.
Discussion of the results
Let’s add all this new code we’ve just developed to test the neural network’s performance to our main program.
While we’re at it, let’s change the file names so that we are now pointing to the full training data set of 60,000 records, ...