Artificial Neural Networks and Representation of Neural Networks
Artificial Neural Networks and Representation of Neural Networks
• Biological- Neurons
• Formal- Nodes
1.Input Layer
2.Hidden Layer
3.Output Layer
Input Layer
Output Layer
Hidden Layer
A Node has 2 parts
1.SUMMATION
2. ACTIVATION FUNCTION
SUMMATION : Calculates the weighted sum of all the inputs.
= x1w1+x2w2+…………………….+xnwn = Σ xiwi
function O/P
O = Actual Output
t = Target output
If Actual output = Target output => Weights are fixed
If Actual output = Target output => Change the weights using formula
How to change the weights?
New(Wi) Old(Wi)+ Wi
Wi =n (t-0)xi
n = Learning rate
t = Target Output
O = Actual Output
Xi = Input value
PERCEPTRON RULE
ALGORITHM
AND Gate
Perceptron
Rule
2. A = 0 , B=1 and Target = 0
New(W1)=Old(W1)+ n( t-o)Xi
New Weights
1. A = 0 , B=0 and Target = 0