Handwritten digit classification assigns each 28 × 28 grayscale image to one of ten numeric classes, from 0 through 9. MNIST provides 60,000 training images and 10,000 test images, making the task a practical baseline for checking whether a neural-network workflow works. section 2.1
A working classification pipeline follows these steps:
- Load MNIST through Keras, keeping images and their corresponding labels in training and test arrays. section 2.1
Reading a prediction
The model returns ten probabilities for each test image. Selecting the largest probability gives the predicted class; one example assigns class 8 a probability of 0.9993394, while the recorded label is 7. Evaluation across the test set reports 0.9784 accuracy.
