Deep-Neural-Networks-using-PyTorch

Implemented Deep Neural Network using PyTorch on a GPU.


Project maintained by akshayjadhav21 Hosted on GitHub Pages — Theme by mattgraham

Deep Neural Networks using PyTorch

This repository covers the following topics:

Preparing the data

The dataset consists of 60,000 (28*28) grayscale images of handwritten digits (0 to 9) and labels for each image indicating which digit it represents. Here are some sample images from the dataset:

MNIST Data Sample

It’s quite challenging to improve the accuracy using normal Logistic Regression model which takes linear relationship between inputs and output into account for image classification. So, we will try to improve the accuracy using Feed-Forward Neural Network which can capture non-linear relationship between inputs and targets.

I’ve prepared the data with step-by-step procedure,

Hidden Layers, Activation Functions, and Non-Linearity

We’ve added required number of hidden layers, activation functions to introduce a non-linearity with step-by-step procedures,

Define the Model

Training the Model

Testing the model on individual images

NOTE: We’ve used a GPU to train the model because when we encounter the larger size of the model and datasets we need to train them in a reasonable amount of time. GPU has hundreds of cores optimized for performing expensive matrix operations which makes them ideal for training a deep neural networks.


Technologies Used


References