Skip to content

A hello-world of deep learning - neural net to classify handwritten digits.

Notifications You must be signed in to change notification settings

nagarajarchak/mnist-digits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classification of MNIST Digits

The MNIST dataset (Modified National Institute of Standards and Technology dataset) is a database of handwritten digits (0 to 9) and this dataset is often known as the "Hello World" dataset of Computer Vision.

The dataset consists of:

  • Training: 55,000
  • Development: 5,000
  • Test: 10,000

Each handwritten digit is grayscale image of dimension 28 x 28 pixels. Here are a few typical MNIST digits:

The dataset is fed to an ANN and Mini-Batch Neural Network and each of these use Gradient Descent, RMSProp and Adam optimizers with a ReLU activation function.

Neural Network Computation Graph

Hyperparameter Tuning

  • Learning Rate: 0.001
  • Hidden Layers: 3
  • Hidden Units: 100
  • Number of Epochs: 50
  • Batch Size: 500
  • Number of Iterations: 1001

Cross Entropy & Accuracies

Artificial Neural Network

Cross Entropy graphs for Gradient Descent, RMSProp and Adam Optimizers respectively.

Accuracies for ANN

ANN Gradient Descent RMSProp Adam
Train 0.567927 0.998673 0.999982
Development 0.583400 0.977000 0.972800
Test 0.577800 0.977800 0.973000

Mini-Batch Neural Network

Cross Entropy graphs for Gradient Descent, RMSProp and Adam Optimizers respectively.

Accuracies for Mini-Batch NN

Mini-Batch Gradient Descent RMSProp Adam
Train 0.856364 0.999964 1.000000
Development 0.860400 0.978600 0.978800
Test 0.864500 0.978000 0.979000

All graphs and images are generated using Tensorboard.

About

A hello-world of deep learning - neural net to classify handwritten digits.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages