Skip to content

An app on hand-written digit recognition done on MNIST digits dataset by deep learning from scratch using numpy.

License

Notifications You must be signed in to change notification settings

Subikesh/Digit-Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digit-Recognition

An app on hand-written digit recognition done on MNIST digits dataset using deep learning. The project is done from scratch using just numpy and pandas. For a demo of this app click here.

Dataset used

The dataset from MNIST is used here to train the model. This dataset contains 60000 training examples and 10000 test examples for hand-written digits and their respective lables. Each image is in 28 x 28 pixels size. The whole dataset is not uploaded in this repository, but u can get the datasets in csv by running all this notebook which loads the data from tensorflow and saves it in a csv file. To make modification in the model or to run the model, you have to load the .csv in that directory first.*

MNIST-digits

Implementation of the model

The implementation of the neural network class can be found in this directory.

  • Single Layer Implementation

    Contains number of neurons, forward propagation, backward propagation, parameters and gradients of the specific layer

  • Complete Neural Network

    Contains list of single layer objects and implementation of gradient descent is done here.

The model creation is done in ml_model notebook. The model performs 99.3% accuracy on training data and 97.5% on test data after regularization. For more information about the implementation, it is explained in ml_model directory.

Making prediction

To make prediction from the drawing canvas, the image pixel data of the canvas is taken (which is of size 420 x 420 px) and is converted to smaller (size 28 x 28) dataset. Then the data of shape 784 x 1 is sent to predict of neural_network class.

About

An app on hand-written digit recognition done on MNIST digits dataset by deep learning from scratch using numpy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published