Skip to content

Two hidden layer Neural Network with 99% Accuracy. Dropout Regularization scheme is also implemented and available as an option. Please read the report for full implemantation Description.

License

Notifications You must be signed in to change notification settings

ShaishavJogani/Neural-Network-Handwritten-Digit-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artificial Neural Network for Digit Classification. Submitted by: Shaishavkumar Jogani (1212392985) and Siva Kongara(1212345483)

System Architecture Python 2.7

External Libraries

  1. Numpy
  2. python-mnist

Installation Run the following command:

--> sudo pip install -r requirements.txt

If you have trouble installing the software please follow the instruction guide in below links:

For Numpy:- --> https://docs.scipy.org/doc/numpy-1.10.0/user/install.html

For python-mnist --> https://github.com/sorki/python-mnist#installation

DataSet

You need to download two dataset files from the following link : http:https://yann.lecun.com/exdb/mnist/

  1. train-images-idx3-ubyte.gz: training set images (9912422 bytes)
  2. train-labels-idx1-ubyte.gz: training set labels (28881 bytes)

Once downloaded, extract it and save it in the directory name "data" in the project folder. File names must be following for the images and lables file respectively.

  1. train-images-idx3-ubyte
  2. train-labels-idx1-ubyte

Running the code

Testing: --> python neuralnet.py

Training (Approximate 5-7 minutes): --> python neuralnet.py --training

Testing with dropout rate (e.g. dropout rate=0.2): --> python neuralnet.py -d 0.2

Training with dropout rate (e.g. dropout rate=0.2): --> python neuralnet.py --training -d 0.2

Testing on different data set (trainSet, validationSet, testSet): For e.g. the following command evaluates the network on the test dataset. --> python neuralnet.py -t testSet

Help. Please use the following command to see full set of arguments and operations.: --> python neuralnet.py --help

About

Two hidden layer Neural Network with 99% Accuracy. Dropout Regularization scheme is also implemented and available as an option. Please read the report for full implemantation Description.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages