Decode the Classifier’s Answers

Understand why we need more weights and dimensions.

Overview of classifier

Let’s review how classify() works. During the classification phase, the WSSs return arrays of ten numbers from 00 to 11. But when we ask the system to recognize an image, we do not want to see those arrays, we want a human-readable answer such as “33.” This means that we must decode the WSSs’ answers before returning them.

So far, the classify() function didn’t have much to do, apart from calling forward() and rounding its output. Now classify() has a more complex job. It must convert the output of the WSSs back to human-readable labels, like this:

Get hands-on with 1200+ tech skills courses.