Exercise 7.8

Answers

The weight matrices are the same as in example 7.1. For the data point x = 2, y = 1, we have

x(0) = [1 2 ]

, s(1) is the same as before,

s(1) = [0.7 1 ].

So x(1) = [ 1 0.7 2 ], and s(2) = [2.1 ],

x(2) = [ 1 2.1 ]

s(3) = [3.2 ]

x(3) = 3.2

Apply backpropagation and note that 𝜃(s(l)) = 1 to compute

δ(3) = 2(x(3) y) = 8.4

δ(2) = 𝜃(s(2)) [W(3)δ(3)] = 16.8

δ(1) = [16.8 50.4 ]

∂e W(1) = x(0)(δ(1))T = [16.8 50.4 33.6100.8 ]

∂e W(2) = x(1)(δ(2))T = [ 16.8 11.76 33.6 ]

∂e W(3) = x(2)(δ(3))T = [ 8.4 17.64 ].

User profile picture
2021-12-08 09:54
Comments