Working of Neural Network

What is Neural Network?

Neural Network is set of algorithm which follows the working of human brain.
It has dense cells called neurons which are helpful for system to learn things. For neural network we need at least 3 layers, Input layer, hidden layer and output layer. Hidden layer can be multiple on the basis of requirement or it’s accuracy.

Working of Forward Neural Network

Input Layer:

In the above diagram there is 3 features x1, x2, and x3 which will help our model to train.

For each feature there is weight associated with them w1, w2 and w3. A good neural network always have distinct weights. So question comes up Why we need weight? Answer: Weights decide how much input values will affect our output. It means that weight decide how fast activation function will work.

For Deep understanding lets take a real life example, Suppose we pull 2 kg weight with left hand and 5 kg weight with right hand. In this process there are multiple neurons will work to tell the brain which is heavier. Right hand will activate early as compare to left hand and tell the brains this is heavier.

Hidden Layer :

Hidden layer makes the network faster and pass only important info to next layer. It will process what all the things are coming from previous layer. Suppose we need to identify Bus, So if only wheels can’t identify the bus , we need conjunctions of another parts to identify a bus. Hidden layers do all these processing. Hidden layer input can be calculated by below example.

Output Layer :

Output layer will produce the final result. Output layer is only one in a neural network. The output layer takes the input from its previous hidden layer and performs the calculations. Output layer input can be calculated by below example.

Example Code :

Enjoy Happy Coding…..

I am passionate software developer working in different technologies like Python, ML, Django and JavaScript.