Backpropagation Algorithm
- 28Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What two operations does an artificial neuron perform?
28 questions
- 1
What two operations does an artificial neuron perform?
Model answer
It calculates a weighted sum of its inputs and then applies an activation function to that sum.
Explanation
These operations occur in sequence inside each neuron.
- 2
How is a neuron's weighted sum formed when it has two inputs and a bias?
Model answer
It is the sum of each input multiplied by its weight, plus the bias multiplied by its input, conventionally set to 1: w1x1+w2x2+b(1).
Explanation
The weights scale the inputs, and the bias contributes an additional adjustable term.
- 3
What layers are shown in the neural-network architecture, and what do the labels I1, H1, and O1 represent?
Model answer
The architecture has input, hidden, and output layers. I1, H1, and O1 denote nodes in those respective layers.
Explanation
The example network also has a second node in each layer.
- 4
What do the arrows between nodes represent, and what role does the bias input of 1 play?
Model answer
The arrows represent weights on connections between nodes. The bias input of 1 lets the bias contribute to the neuron's weighted sum.
Explanation
The bias is included as an additional weighted term in the sum.
- 5
Write the sigmoid activation function and its derivative.
Model answer
The sigmoid is [0m
Explanation
The sigmoid derivative can be written in terms of the sigmoid's output, which is useful in backpropagation.
- 6
What does an activation function contribute to a neural network, and what ranges are given for sigmoid and hyperbolic tangent?
Model answer
An activation function represents a neuron's state and introduces nonlinearity. Sigmoid outputs values between 0 and 1, while hyperbolic tangent outputs values between −1 and 1.
Explanation
The content also names ReLU as another activation-function type.
- 7
Which activation function is used in the worked network example?
Model answer
The worked example uses the sigmoid activation function.
Explanation
The weighted sum at each hidden and output node is passed through sigmoid.
- 8
How does forward propagation move through the network, and what is its purpose?
Model answer
It moves from the input layer through the hidden layer to the output layer to calculate predicted outputs.
Explanation
The predicted outputs are then compared with the target values to calculate error.
- 9
For the example inputs I1=0.05 and I2=0.1, weights w1=0.15 and w2=0.2, and bias b1=0.35, calculate the weighted sum at H1.
Model answer
netH1=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775.
Explanation
The bias is multiplied by its input, which is 1.
- 10
How is the output of hidden node H1 calculated from its weighted sum?
Model answer
Apply sigmoid to the weighted sum: outH1=1+e−netH11. For netH1=0.3775, the output is approximately 0.59327.
Explanation
The activation function transforms the weighted sum into the node's output.
- 11
What is the approximate sigmoid output of hidden node H2 in the worked example?
Model answer
The example gives outH2≈0.59688.
Explanation
It is calculated by finding H2's weighted sum and applying the same sigmoid operation used for H1.
- 12
How is the weighted sum at output node O1 formed from the hidden-layer outputs?
Model answer
It is netO1=w5outH1+w6outH2+b2(1).
Explanation
Each hidden-node output is multiplied by its connection weight, and the bias term is added.
- 13
Using the example values w5=0.4, w6=0.45, b2=0.6, outH1≈0.59327, and outH2≈0.59688, what is netO1 approximately?
Model answer
netO1≈0.4(0.59327)+0.45(0.59688)+0.6=1.10591.
Explanation
This is the weighted sum that is passed to the output node's activation function.
- 14
How is the predicted output of node O1 obtained from netO1, and what value does the example report?
Model answer
Apply sigmoid to netO1; the example reports outO1≈0.75137.
Explanation
The same weighted-sum-then-activation process is used at output nodes as at hidden nodes.
- 15
What predicted output does the worked example report for output node O2?
Model answer
The example reports outO2≈0.77293.
Explanation
It is found by calculating O2's weighted sum and applying sigmoid.
- 16
Why are weighted sums and activation functions calculated at hidden and output nodes, but not at the input nodes in this example?
Model answer
Hidden and output nodes receive weighted connections that they combine and pass through an activation function. The input nodes are the supplied inputs and have no incoming weights in the diagram.
Explanation
The forward calculation begins with the input values and proceeds to nodes that compute weighted sums.
- 17
What target values are assigned to output nodes O1 and O2 in the example?
Model answer
The targets are 0.01 for O1 and 0.99 for O2.
Explanation
These target values are compared with the predicted outputs to calculate error.
- 18
Write the squared-error formula used for one output node.
Model answer
For a target t and predicted output o, the error is E=21(t−o)2.
Explanation
The factor of one-half is included in the cost formula described in the content.
- 19
Why does the order of target and predicted output not affect the squared-error value?
Model answer
Reversing their order changes only the sign of the difference, and squaring makes either sign produce the same error.
Explanation
Thus, (t−o)2=(o−t)2.
- 20
How is the total error for the two output nodes calculated?
Model answer
Calculate each node's error using the squared-error formula, then add them: Etotal=EO1+EO2.
Explanation
The network's total error combines the contributions from both outputs.
- 21
What individual output-node errors and total error does the worked example report?
Model answer
It reports EO1≈0.274811, EO2≈0.023560, and Etotal≈0.298371.
Explanation
The total is the sum of the two output-node errors.
- 22
What is the purpose of calculating the error during forward propagation?
Model answer
The error measures the difference between the predicted outputs and their target values, providing a cost to minimize during training.
Explanation
The computed error is used to guide weight and bias updates in backpropagation.
- 23
In which direction does backpropagation move through the network, and what does it update?
Model answer
It moves backward from the output layer toward the input layer and updates the network's weights and biases using gradient descent.
Explanation
The updates are intended to reduce the cost or error function.
- 24
How is the sigmoid derivative useful in backpropagation?
Model answer
The derivative σ′(x)=σ(x)(1−σ(x)) is used in the mathematical steps for backpropagation.
Explanation
It expresses the sigmoid's rate of change using its output.
- 25
Describe the repeated training cycle used to reduce network error.
Model answer
The network performs forward propagation to calculate outputs and error, then backpropagates to update weights and biases; this cycle is repeated.
Explanation
After each update, another forward pass evaluates the resulting error.
- 26
How does the training process decide whether to update the parameters again or finish?
Model answer
It checks whether the error is sufficiently low; if not, it updates the weights and biases and repeats the cycle.
Explanation
The process continues until the error meets the chosen minimum condition.
- 27
What iteration counts are mentioned as examples for repeating the training process?
Model answer
The content gives 1,000 or 10,000 iterations as examples.
Explanation
These are example counts for repeating the forward and backward passes.
- 28
What does the content say is the result when training reaches a minimum error?
Model answer
It says the model is ready to make predictions.
Explanation
Training adjusts the parameters before the model is used for prediction.

Ask anything
We've read this whole study set, so questions about it get the best answers.