Skip to content

Implementation of Neural Network from scratch without using any library implementations.

Notifications You must be signed in to change notification settings

har33sh/ArtificialNeuralNetwork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Network

  • Implemenation of Neural Network
  • Done in Python, Pandas and Numpy with no external machine learning used

The purpose of this project was to understand the architecture of Neural Network and to know what is going on during the training process.

This is not a production quality code

About the Implemenation

Implemenation is inspired by the MLPClassifier of sklearn

Configurable Parameters

  • hidden_layer_size: The number of hidden layersm by default the size of hidden layer is set to be 3, as in most of the cases 3 layers is good.

  • learning_rate: The rate at which the weights are updated

  • neurons: The number of neurons in the hidden layers

  • activation_function

    • tanh: the hyperbolic tan function, returns f(x) = tanh(x). This is the default
    • relu: the rectified linear unit function, returns f(x) = max(0, x)
    • sigmoid: the logistic sigmoid function, returns f(x) = 1 / (1 + exp(-x)).
  • iterations: Maximum number of iterations.

  • decay_factor:Should be between 0 and 1. The rate at which the learning_rate rate is decayed

Problem Statement

(https://inclass.kaggle.com/c/cs-725-403-assignment-2)

Task is to predict whether income exceeds $50K/yr based on census data. Also known as "Census Income" dataset.
Note that in the train and test data,salary >$50K is represented by 1 and <=$50K is represented by 0.

To know more about the dataset click here

References

  1. Census Income Data Set from archive.ics.uci.edu
  2. A guide to Deep learning
  3. Information on how to optimise Neural Network
  4. Neural Network in 11 lines -- Short and best Implemenation of NN

About

Implementation of Neural Network from scratch without using any library implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published