Simple Classifier Performance

Analyze the classifier performance.

We'll cover the following

Trick to analyze!

A simple way to see how well our neural network correctly classifies images is to work through all the 10,000 images in the MNIST test dataset and keep a count of how many it got right. We do this by comparing the output of the network with the label that came with the image.

The following code sets a score count to 0 and then works through the test data, incrementing the score every time the label matches the network’s output.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy