Build CNN: Apparel Image Classification for Fashion MNIST
Version 1.0.0 (718 KB) by
Kunal Khandelwal
This MATLAB script trains a CNN for MNIST digit classification, achieving >90% accuracy.
This MATLAB script trains a Convolutional Neural Network (CNN) on the MNIST dataset for digit classification. It follows a structured workflow:
- Data Extraction & Processing – Decompresses and loads MNIST images and labels.
- Visualization – Displays sample images from training and test sets.
- CNN Architecture – Uses convolutional, batch normalization, ReLU, and pooling layers.
- Training – Optimized with Adam optimizer and early stopping.
- Evaluation – Computes accuracy, confusion matrix, precision, recall, and F1-score.
Cite As
Kunal Khandelwal (2026). Build CNN: Apparel Image Classification for Fashion MNIST (https://www.mathworks.com/matlabcentral/fileexchange/180241-build-cnn-apparel-image-classification-for-fashion-mnist), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
