

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Given the following network and the data, perform the single iteration. Employ the learning rate as η = 0. 9 and the activation function as the sigmoid. Compact the data first into [0.1 , 0.9] range and then perform the iteration. Do not consider any bias neuron.
The mathematical expression of the sigmoid activation function is as seen below. It produces output in [0 ,1] range.
f (netj ) =
1 + e(netj^ )^
And its derivative is f ′(αx) = f (αx)(1 + f (αx)) (2)
According to assignment, the following method is chosen for compacting data into [0.1 , 0.9] range.
zi = 0.1 + 0 .8(xi − xmin) xmax − xmin
z 11 = 0.1 + 0 .8(x
(^11) −xmin) xmax−xmin = 0.1 +^
0 .8(182−124) 248 − 124 = 0.^47 //^ z
1 2 = 0.1 +^
0 .8(x^12 −ymin) xmax−xmin = 0.1 +^
0 .8(48−24) 84 − 24 = 0.^42
z 12 = 0.1 + 0 .8(x
(^21) −xmin) xmax−xmin = 0.1 +^
0 .8(124−124) 248 − 124 = 0.^1 //^ z
2 2 = 0.1 +^
0 .8(x^22 −ymin) xmax−xmin = 0.1 +^
0 .8(84−24) 84 − 24 = 0.^9
z 13 = 0.1 + 0 .8(x
(^31) −xmin) xmax−xmin = 0.1 +^
0 .8(248−124) 248 − 124 = 0.^9 //^ z
3 2 = 0.1 +^
0 .8(x^32 −ymin) xmax−xmin = 0.1 +^
0 .8(24−24) 84 − 24 = 0.^1
t^11 = 0.1 + (^0) t.max8(t^1 −−ttminmin )= 0.1 + 0 .8(506 626 −− 418 418) = 0. 43
t^21 = 0.1 + (^0) t.max8(t^2 −−ttminmin )= 0.1 + 0 .8(418 626 −− 418 418) = 0. 1
t^31 = 0.1 + (^0) t.max8(t^3 −−ttminmin )= 0.1 + 0 .8(626 626 −− 418 418) = 0. 9
netpj =
zpiwij (4)
ypj = f (netpj ) =
1 + e(net
p j )^
X^ p
k=
X^ q
j=
(ykj − tkj )^2 (6)
where, p is the number of training patterns, q is the number of output nodes (q=0), y is the model output, t is the target output, E is the error function.
net^13 = z 11 w 13 + z^12 w 23 = (0.47)(− 5 .3) + (0.42)(4.5) = − 0. 601
y^13 = (^) 1+e−^10. 601 = 0. 354115
net^14 = z 11 w 14 + z^12 w 24 = (0.47)(2.4) + (0.42)(− 7 .2) = − 1. 896
y^14 = (^) 1+e−^11. 896 = 0. 130562
net^15 = y^13 v 35 + net^14 v 45 = (0.354115)(− 6 .5) + (0.130562)(5.5) = − 1. 58366
y^15 = (^) 1+e−^11. 58366 = 0. 170278
net^23 = z 12 w 13 + z^22 w 23 = (0.1)(− 5 .3) + (0.9)(4.5) = 3. 52
y^23 = (^) 1+e^13. 52 = 0. 971252
net^24 = z 12 w 14 + z^22 w 24 = (0.1)(2.4) + (0.9)(− 7 .2) = − 6. 24
y^24 = (^) 1+e^1 − 6. 24 = 0. 001946
net^25 = y^23 v 35 + net^24 v 45 = (0.971252)(− 6 .5) + (0.001946)(5.5) = − 6. 30243
y^25 = (^) 1+e−^16. 30243 = 0. 001828
net^33 = z 13 w 13 + z^32 w 23 = (0.9)(− 5 .3) + (0.1)(4.5) = − 4. 32
y^33 = (^) 1+e^1 − 4. 32 = 0. 013125
net^34 = z 13 w 14 + z^32 w 24 = (0.9)(2.4) + (0.1)(− 7 .2) = 1. 44
y^34 = (^) 1+e^11. 44 = 0. 808455