Back Propagation-2-20
Back Propagation-2-20
v Now, we will backpropagate this error to update the weights using a backward pass.
v Backward pass at the output layer
v To update the weight, we calculate the error correspond to each weight with the help of a total error. The
error on weight w is calculated by differentiating total error with respect to w.
v From equation two, it is clear that we cannot partially differentiate it with respect to w5 because there is
no any w5. We split equation one into multiple terms so that we can easily differentiate it with respect to
w5 as
v Now, we calculate each term one by one to differentiate Etotal with respect to w5 as
v Putting the value of e-y in equation (5)
v So, we put the values of in equation no (3) to find the final result.
v Now, we will calculate the updated weight w5new with the help of the following formula
v In the same way, we calculate w6new,w7new, and w8new and this will give us the following values
v w5new=0.35891648
v w6new=408666186
v w7new=0.511301270
v w8new=0.561370121
v Backward pass at Hidden layer
v Now, we will backpropagate to our hidden layer and update the weight w1, w2, w3, and w4 as we have
done with w5, w6, w7, and w8 weights.
v We will calculate the error at w1 as
v From eqn (2), it is clear that we cannot partially differentiate it with respect to w1 because there is no any
w1. We split equation (1) into multiple terms so that we can easily differentiate it with respect to w1 as
v Now, we calculate each term one by one to differentiate Etotal with respect to w1 as
v We again Split both because there is no any y1 and y2 term in E1 and E2. We split it as
v Now, we find the value of by putting values in equation (18) and (19) as
v From equation (18)
v From equation (8)