Backpropagation: Part 2
Explore the step-by-step process of one round of backpropagation in a neural network. Understand how to calculate errors at each node and update weights and biases using the sigmoid function and specific formulas to improve model accuracy.
Backpropagation worked example
In this lesson, we will consider the neural network below and update the weights and biases for one round of backpropagation. We use the sigmoid function as the activation function, and the learning rate l is 0.9.
We have the following initial values of inputs, weights, and biases of the above neural network:
are our input values with values , and , respectively, and the corresponding class label is 1 i.e . are the bias values of the units and , respectively.
Feedforward process
The following table sums up the feedforward process. The first column represents the unit number from the above neural network. The second column represents the net input being computed at those units, and the third column applies the sigmoid activation on the relevant net inputs and produces the output.
Units, j | Net input (Ij) | Output, (Oj) (Applying Sigmoid Activation) |
4 | (0.2 + 0 - 0.5 - 0.4 = -0.7) | 0.332 |
5 | (-0.3 + 0 + 0.2 + 0.2 = 0.1) | 0.525 |
6 | ((-0.3)(0.332) - (0.2)(0.525) + 0.1 = -0.105) | 0.474 |
Formulas for weights update
From the last lesson, we have the following formulas, and we will be utilizing them to update the weights and biases.
-
...