


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A neural network assignment with instructions to find weights for a perceptron to output specific logical functions, fill out a table to determine new weights after training iterations, and derive the backpropagation rules for perceptrons using a tanh excitation function.
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



The first two questions are required. Question three is 10% extra credit.
wbias,h1 wa,h1 wb,h1 wbias,h2 wa,h2 wb,h2 wbias,o wh1,o wh2,o Initial weights 0.68 0.38 0.83 0.5 0.71 0.43 0.30 0.19 0. Timestep Case erro errh1 errh2? wbias,h1? wa,h1? wb,h1? wbias,h2? wa,h2? wb,h2? wbias,o? wh1,o? wh2,o 1 a=0,b=0 -0.0279 -0.00312 0 0 0 0 a=0,b= a=1,b= a=1,b= wbias,h1 wa,h1 wb,h1 wbias,h2 wa,h2 wb,h2 wbias,o wh1,o wh2,o New weights 0. 2 a=0,b= a=0,b= a=1,b= a=1,b=
a b
h1 h
o
oi (^) [ h ]for ( xi wi ) (^) i [ h ]
r r tanh โ . (Hint:
( ( )) h ( ) x ( ) x x
x (^) 2 2 sec 1 tanh
tanh = = โ โ
[ ] [ ]
ihjo
xc f x w f f x w w w
ฮด
r r rr r r = โ โ โ
,
, , or
[ ] [ ]
ihjo
xc f x w f f x w w f f x w w w
ฮด
r r r r r r r r r r = โ โ โ โ โ โ
,
, ,
r r โก โ and
r (^) r r r = โ โ , this becomes
[ ] [ ]
ihjo
xc o o o w
= โ ฮด โ
,
, .
Likewise, for the input neurons, we find
[ ] [ ]
ii jh
xc f f x w w w f x w x w
ฮด
r (^) r r r r r = โ โ โ โ
,
, , or
[ ] [ ]
ii jh
xc xo o w o o w
= โ โ ฮด โ
,
, .
and the inputs xi to be considered as the outputs from the input neurons oi (^) [ ] i , then we can
finally combine both equations into
ij
xc oo o w
= โ ฮด โ
,
, .