- 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
Implemenation is inspired by the MLPClassifier of sklearn
-
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
(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