This repository contains a clean and reproducible PyTorch implementation for the Kaggle Digit Recognizer competition.
The goal of the competition is to correctly classify handwritten digits (0–9) from the MNIST dataset.
- data preparation → load CSVs, reshape/normalize images, build PyTorch datasets.
- augmentation → random rotations, translations, normalization.
- model → lightweight CNN with 3 convolutional layers + dropout.
- training → training loop with validation, early stopping, and LR scheduler.
- submission → generate
submission.csvfor Kaggle leaderboard.
# clone the repository
git clone https://github.com/YOUR-USERNAME/digit-recognizer-pytorch.git
cd digit-recognizer-pytorch
# install dependencies
pip install torch torchvision pandas numpy matplotlib