Skip to content

This project is an end-to-end machine learning pipeline for handwritten digit classification using the MNIST dataset using KNN & GridSearch

Notifications You must be signed in to change notification settings

salahuddin212/MNIST_Classifer_KNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MNIST Digit Classifier (K-Nearest Neighbors + Grid Search)

This project is an end-to-end machine learning pipeline for handwritten digit classification using the MNIST dataset.

It demonstrates a complete ML workflow including:

  • Problem framing and dataset loading
  • Visualization of sample digits
  • Train-test splitting with stratification
  • Model training with K-Nearest Neighbors (KNN)
  • Hyperparameter tuning using Grid Search with cross-validation
  • Final model evaluation using accuracy, confusion matrix, precision, recall, and F1-score

πŸš€ Technologies Used:

  • Python 3.x
  • Scikit-learn
  • NumPy
  • Matplotlib
  • Seaborn

πŸ“ˆ Dataset:

MNIST Handwritten Digits (from fetch_openml)

πŸ“Š Performance Metrics:

  • Accuracy
  • Confusion Matrix
  • Precision, Recall, F1-Score

This project is designed as a foundational step for building more advanced ML models and is ideal for those learning about classification tasks and hyperparameter optimization.

About

This project is an end-to-end machine learning pipeline for handwritten digit classification using the MNIST dataset using KNN & GridSearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published