Skip to content

Two fully connected layers neural network in PyTorch to classify digits

Notifications You must be signed in to change notification settings

gamante91/fullyConnectedNN_MNIST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

fullyConnectedNN_MNIST

This is the "Hello World" equivalent of Machine Learning:

a two fully connected layers neural network trained on the MNIST (http://yann.lecun.com/exdb/mnist/) dataset to classify digits.

The Neural Network is coded in PyTorch and has an input layer of size 784, as the inputs are 28x28 grayscale images, an hidden layer of size 500 and an ouput layer of size 10 (digits from 0 to 9).

Choiche of hyper parameters:

  • Learning Rate: 0.001
  • Loss function: Cross Entropy Loss
  • Optimizer: Stochastic Gradient Descent

After being trained, the Neural Network reached an accuracy on the 10000 test images of 86.71%

About

Two fully connected layers neural network in PyTorch to classify digits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published