Skip to content

Repository files navigation

Handwritten Digit Classifier

This is a deep neural network classiifier that uses covolution neural network with 2 FC layers to classify Handwritten digits from MNIST.

MNIST Dataset

MNIST dataset contains gray scale images of size 28 * 28. The train data has 60000 images and test has 10000 images. Below is the sample data

alt text

Architecture Diagram

Architecure diagram is below:

alt text

Requirements

  • matplotlib==3.7.1
  • matplotlib-inline==0.1.6
  • torch==2.0.1
  • torchsummary==1.5.1
  • torchvision==0.15.2
  • tqdm==4.65.0

Execution

To run the code, execute the Session_5.ipynb file. The model is set to execute on MPS/GPU/CPU The training time on MPS is ~ 4 mins

Model Accuracy and Loss

The model reached and accuracy of 99.28% on test set with loss of 0.01. The loss function used here was Crossentropy loss.

Model specs

  • Total number of trainable model parameters = 593,200
  • Total number of non-trainable model parameters = 0
  • Model Size = 2.94MB

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages