Image recognition turns image pixels into a finite-state prediction, such as identifying a handwritten digit or deciding which object appears in a picture. section 2.9
MNIST provides 28-by-28 grayscale images of digits 0–9. A neural network reshapes each image into 784 numbers and converts each digit label into a ten-entry indicator vector. section 10.19
A small image-recognition workflow:
- Load MNIST into training and testing arrays. section 10.19
A model’s mistake
The trained network correctly classifies one image as 4 but incorrectly classifies an image of 3 as 8, showing why testing matters.


