Professional Documents
Culture Documents
NETWORKS
Scholastic Video Book Series
Artificial Neural Networks
Part 3
(Back Propagation)
(with English Narrations)
http://scholastictutors.webs.com
(http://scholastictutors.webs.com/Scholastic-Book-NeuralNetworks-Part03-2013-10-22.pdf)
http://scholastictutors.webs.com
(ANN-003) 2
Back-Propagation Algorithm
Step 1: Calculate the local gradients (do1, do2, dh1 and dh2) for the nodes
in the network. 1
(v )
+1 1 exp v
+1 dh1 b3 do1
b1 = () 1 ()
y1
w11 w31 y3 Desired = d3
x1 n1 n3
w41
1 = 1 3 + 1 31 + 2 32 (3 3)
w21
dh2 do2
w12 2 = 1 4 + 1 41 + 2 42 (4 4)
w32 y4
w22 n2
x2 n4 Desired = d4
w42
y2
+1 b2 b4
+1
1 = (1 1 + 1 11 + 2 12) 1 31 + 2 41
2 = (1 2 + 1 21 + 2 22) 1 32 + 2 42
http://scholastictutors.webs.com
Back-Propagation
Algorithm
Step 2: Adjust the weights of the network using
the learning rule:
+ = + +
31 + 1 = 31 + 31 1 + 1 1
41 + 1 = 41 + 41 1 + 2 1
32 + 1 = 32 + 32 1 + 1 2
42 + 1 = 42 + 42 1 + 2 2
11 + 1 = 11 + 11 1 + 1 1
21 + 1 = 21 + 21 1 + 2 1
12 + 1 = 12 + 12 1 + 1 2
22 + 1 = 22 + 22 1 + 2 2
3 + 1 = 3 + 3 1 + 1 1
4 + 1 = 4 + 4 1 + 2 1
1 + 1 = 1 + 1 1 + 1 1
2 + 1 = 2 + 2 1 + 2 1
http://scholastictutors.webs.com
Back-Propagation - Example
Lets perform a complete forward and backward sweep of the feedforward
network (2-2-1 architecture) shown below using the back propagation
algorithm discussed.
b1=0.1 dh1 Assume,
+1 v1 y1 +1 target output = 0.9,
h = 0.25, and a=0.0001
w11= -0.2
x1=0.1 Neuron 1
b3= 0.2
do1
w31= 0.2 Output = y3
w12= 0.1
v3 Neuron 3
1 = 0.17, 1 = 0.542
2 = 0.36, 2 = 0.589
3 = 0.485, 3 = 0.619
= 0.281
1 = 3 3 3 = 0.4851 0.281 =
0.4851 1 0.4851 0.281 = 0.619 1 0.619 0.281 = 0.0663
http://scholastictutors.webs.com
Backward Pass
1 = 0.542, 2 = 0.589
1 = 0.0663,
1 = 0.0033
2 = 0.0049
1 = 0.542, 2 = 0.589
1 = 0.0663,
1 = 0.0033
2 = 0.0049
http://scholastictutors.webs.com
Backward Pass
1 = 0.542, 2 = 0.589
1 = 0.0663,
1 = 0.0033
2 = 0.0049
1 = 0.542, 2 = 0.589
1 = 0.0663,
1 = 0.0033
2 = 0.0049
b1=0.1008 dh1
+1 v1 y1 +1
w11= -0.1999
x1=0.1 Neuron 1 b3= 0.2166
do1
w31= 0.2090
w12= 0.1008 Output = y3
v3 Neuron 3
w21= -0.0999
w32= 0.3098
b2= 0.1012 v2 y2
+1
dh2
1 = 0.17 1 = 0.1715
1 = 0.542 1 = 0.5428
2 = 0.36 2 = 0.3622
2 = 0.589 2 = 0.5896
3 = 0.4851 3 = 0.5127
3 = 0.619 3 = 0.6254
= 3 3 = 0.9 0.619 = 0.281 = 3 3 = 0.9 0.6254 =
0.2746
http://scholastictutors.webs.com
(ANN-003) 15
Scholastic Video Book Series
Artificial Neural Networks
Part 3
(Back Propagation)
(with English Narrations)
(END)
(http://scholastictutors.webs.com/Scholastic-Book-NeuralNetworks-Part03-2013-10-22.pdf)