Skip to content

Naman-kr404/digit-recognition-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Handwritten Digit Recognition Model

This project implements a machine learning model to recognize handwritten digits using the popular MNIST dataset. It utilizes fundamental Python libraries such as NumPy, pandas, scikit-learn, and matplotlib for data processing, model training, and visualization.


📚 Description

The model is trained to classify grayscale images of handwritten digits (0–9). This is a classic supervised learning task using the MNIST dataset, which contains 70,000 labeled images. The primary goal is to achieve accurate recognition of digits using efficient data preprocessing and classification techniques.


🛠️ Tech Stack

  • NumPy – For numerical operations and matrix manipulation
  • pandas – For data handling and preprocessing
  • scikit-learn – For machine learning models and evaluation
  • matplotlib – For data visualization
  • MNIST Dataset – Benchmark dataset for digit classification

🚀 Features

  • Loads and preprocesses the MNIST dataset
  • Trains a classification model using scikit-learn
  • Visualizes example digits and predictions
  • Evaluates model performance with accuracy and confusion matrix

🧪 How to Run

  1. Clone the Repository
    git clone https://github.com/Naman-kr404/digit-recognition-model.git
    cd handwritten-digit-recognition
    
  2. Install Required Packages
    pip install numpy pandas scikit-learn matplotlib
  3. Run the Script
    python digit_recognition.py
    

📊 Output

Accuracy score on the test dataset

Confusion matrix

Visualization of some predicted digits


📁 Project Structure

handwritten-digit-recognition/
├── digit_recognition.py
├── README.md
├── requirements.txt
└── assets/
    └── example_predictions.png


🧠 Future Improvements

  • Integrate deep learning models (e.g., CNN with TensorFlow/Keras)

  • Deploy as a web app using Flask or Streamlit

  • Enable real-time digit prediction using user-drawn input


🤝 Contributions

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


📬 Contact

For questions or collaboration, contact: [spjnaman@gmail.com]


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors