Recognizes handwritten Persian (Farsi) digits with a from-scratch Minimum Distance Classifier - no black-box ML model.
Implements a custom Minimum Distance Classifier and applies it to the Hoda handwritten-digit dataset (the standard Farsi digit benchmark), demonstrating the classifier mechanics end-to-end.
- Load & preprocess the Hoda digit images (normalize, flatten/feature-prep).
- Build class prototypes - compute a representative (mean) vector per digit class.
- Classify each test image by assigning it to the nearest class prototype (minimum distance).
- Evaluate classification accuracy across the 10 digit classes.
Python, NumPy, Pandas. Jupyter Notebook. (Classifier implemented from scratch - no scikit-learn model.)
HodaDigitRecognition.ipynb- data loading, custom classifier, evaluation.
pip install numpy pandas
jupyter notebook