Backpropagation Algorithm
- 34Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What two operations does an artificial neuron perform on its incoming signals?
What two operations does an artificial neuron perform on its incoming signals?
34 questions
- 1
What two operations does an artificial neuron perform on its incoming signals?
- A
It applies an activation function and then changes the input values.
- B
It compares each input with the target and removes incorrect signals.
- C
It calculates a weighted sum and applies an activation function.
- D
It calculates an average and selects the largest input.
Correct answer
CIt calculates a weighted sum and applies an activation function.
Explanation
The neuron first combines its inputs using weights and a bias, then passes that weighted sum through an activation function.
- A
- 2
How does a bias contribute to the weighted sum entering a neuron when its associated input is set to 1?
- A
It subtracts the largest weighted input.
- B
It adds the bias value to the weighted sum.
- C
It replaces the activation function's output.
- D
It multiplies every input by the bias value.
Correct answer
BIt adds the bias value to the weighted sum.
Explanation
A bias with an associated input of 1 contributes b×1, which is the bias value itself.
- A
- 3
Which expression gives the weighted sum entering a neuron with inputs x1 and x2, weights w1 and w2, and bias b?
- A
x1+x2+w1w2b
- B
w1x1+w2x2+b
- C
w1x2+w2x1−b
- D
(w1+x1)(w2+x2)+b
Correct answer
Bw1x1+w2x2+b
Explanation
Each input is multiplied by its corresponding weight, and the bias contribution is added to the resulting sum.
- A
- 4
In the described network, which group of nodes receives the original inputs?
- A
The bias layer, containing the target values
- B
The input layer, containing I1 and I2
- C
The hidden layer, containing H1 and H2
- D
The output layer, containing O1 and O2
Correct answer
BThe input layer, containing I1 and I2
Explanation
The content identifies I1 and I2 as nodes in the input layer; H1 and H2 are hidden-layer nodes, and O1 and O2 are output nodes.
- A
- 5
Why are no incoming weighted sums calculated for the input nodes in the described forward-pass calculation?
- A
They are the input nodes, so no weighted connections into them are being summed.
- B
They contain no numerical values until backward propagation begins.
- C
They already contain the final predictions for the network.
- D
They apply the output error directly to the target values.
Correct answer
AThey are the input nodes, so no weighted connections into them are being summed.
Explanation
The described calculations begin with weighted sums at hidden-layer nodes. The input nodes provide the values that are passed along the network.
- A
- 6
What does the activation function do to a neuron's weighted sum?
- A
It calculates the total error across the network.
- B
It replaces the weights with the target values.
- C
It transforms the weighted sum into the neuron's output.
- D
It sends the weighted sum back to the input layer.
Correct answer
CIt transforms the weighted sum into the neuron's output.
Explanation
After calculating a weighted sum, the neuron applies its activation function to produce its output.
- A
- 7
Which formula represents the sigmoid activation function described in the content?
- A
σ(x)=1−ex1
- B
σ(x)=x(1−x)
- C
σ(x)=1+e−x
- D
σ(x)=1+e−x1
Correct answer
Dσ(x)=1+e−x1
Explanation
The sigmoid function is given as σ(x)=1+e−x1.
- A
- 8
If a neuron's weighted sum is z, which expression gives the derivative of the sigmoid at that value?
- A
z(1−z)
- B
1−σ(z)
- C
σ(z)(1−σ(z))
- D
σ(z)+1
Correct answer
Cσ(z)(1−σ(z))
Explanation
The derivative of the sigmoid is expressed as σ(x)(1−σ(x)); at weighted sum z, this becomes σ(z)(1−σ(z)).
- A
- 9
A neuron uses the sigmoid function, and its weighted sum changes substantially. What range can its output take according to the content?
- A
Only the values 0 and 1
- B
Between −1 and 1
- C
Any value from negative to positive infinity
- D
Between 0 and 1
Correct answer
DBetween 0 and 1
Explanation
The content states that sigmoid outputs fall between 0 and 1.
- A
- 10
How does the stated output range of hyperbolic tangent compare with the sigmoid range?
- A
Hyperbolic tangent ranges from 0 to 1, while sigmoid ranges from −1 to 1.
- B
Both functions produce only values between 0 and 1.
- C
Both functions range from 0 to positive infinity.
- D
Hyperbolic tangent ranges from −1 to 1, while sigmoid ranges from 0 to 1.
Correct answer
DHyperbolic tangent ranges from −1 to 1, while sigmoid ranges from 0 to 1.
Explanation
The content gives the hyperbolic tangent range as −1 to 1 and the sigmoid range as 0 to 1.
- A
- 11
What role does an activation function play in the network, as described in the content?
- A
It represents a neuron's activation state and introduces nonlinearity.
- B
It stores the target output and removes weighted connections.
- C
It calculates the cost without using a neuron's inputs.
- D
It guarantees that every network output equals its target.
Correct answer
AIt represents a neuron's activation state and introduces nonlinearity.
Explanation
The content describes the activation function as representing a neuron's state and introducing nonlinearity into the neural network.
- A
- 12
Which set contains only activation functions mentioned in the content?
- A
Bias, ReLU, and weighted sum
- B
Gradient descent, sigmoid, and cost function
- C
Target value, hyperbolic tangent, and gradient descent
- D
Sigmoid, ReLU, and hyperbolic tangent
Correct answer
DSigmoid, ReLU, and hyperbolic tangent
Explanation
The content names sigmoid, ReLU, and hyperbolic tangent as activation-function types.
- A
- 13
In which direction does forward propagation move through the described network?
- A
From the input layer toward the output layer
- B
From the output layer toward the input layer
- C
From the bias values toward the input nodes only
- D
From the hidden layer directly back to the target values
Correct answer
AFrom the input layer toward the output layer
Explanation
Forward propagation carries information from the inputs through the network to calculate the output predictions.
- A
- 14
What is the main result calculated during forward propagation?
- A
Predicted output values that can be compared with the targets
- B
Target values generated from the hidden layer
- C
Updated weights that have already minimized the cost
- D
The derivatives of all input values
Correct answer
APredicted output values that can be compared with the targets
Explanation
The forward pass calculates predicted outputs; these predictions are then compared with target values to determine error.
- A
- 15
In which direction does backward propagation move in the described example?
- A
From an input node forward to the output layer
- B
From an output node back toward the input layer
- C
From the target values toward the input data only
- D
From the hidden layer outward without reaching the outputs
Correct answer
BFrom an output node back toward the input layer
Explanation
The content describes backward propagation as moving back from an output node toward the input layer.
- A
- 16
What is the purpose of updating weights and biases during backward propagation?
- A
To use gradient descent to reduce the cost or error
- B
To make the predicted outputs equal to the inputs
- C
To increase the cost so the network changes more quickly
- D
To replace the activation function with a target value
Correct answer
ATo use gradient descent to reduce the cost or error
Explanation
Backward propagation updates weights and biases using gradient descent with the aim of minimizing the cost or error.
- A
- 17
After a backward pass updates the network's weights and biases, what does the described training process do next?
- A
Set every target value equal to its corresponding weight
- B
Stop calculating outputs and remove the hidden layer
- C
Run forward propagation again using the updated parameters
- D
Discard the updated parameters and keep the original predictions
Correct answer
CRun forward propagation again using the updated parameters
Explanation
The content describes using updated weights and biases in another forward pass, recalculating error, and then repeating the process.
- A
- 18
Which statement correctly contrasts the main roles of forward and backward propagation?
- A
Forward propagation minimizes error by itself; backward propagation produces the first predictions.
- B
Forward propagation updates targets; backward propagation calculates the original inputs.
- C
Forward propagation calculates predictions; backward propagation updates parameters to reduce error.
- D
Forward propagation calculates derivatives only; backward propagation applies the activation function only.
Correct answer
CForward propagation calculates predictions; backward propagation updates parameters to reduce error.
Explanation
The forward pass computes outputs and error, while the backward pass uses gradient descent to update weights and biases in an effort to reduce that error.
- A
- 19
For the example hidden node H1, the inputs are 0.05 and 0.1, the weights are 0.15 and 0.2, and the bias is 0.35. What weighted sum does the content calculate?
- A
0.3775
- B
0.4275
- C
0.0525
- D
0.3275
Correct answer
A0.3775
Explanation
Using 0.15(0.05)+0.2(0.1)+0.35(1) gives 0.3775.
- A
- 20
Once the weighted sum for H1 is 0.3775, what operation produces the node's output in the example?
- A
Multiply 0.3775 by the bias a second time
- B
Subtract 0.3775 from the target value
- C
Apply the sigmoid function to 0.3775
- D
Add the two target values to 0.3775
Correct answer
CApply the sigmoid function to 0.3775
Explanation
The example applies the sigmoid activation to the weighted sum. This produces an H1 output of approximately 0.59327.
- A
- 21
What approximate output for hidden node H1 is reported after applying sigmoid to its weighted sum?
- A
0.59327
- B
0.3775
- C
0.29837
- D
0.75137
Correct answer
A0.59327
Explanation
Applying sigmoid to the H1 weighted sum of 0.3775 gives an output of approximately 0.59327.
- A
- 22
How does the forward-pass calculation for H2 relate to the calculation for H1?
- A
Calculate its error first, then apply gradient descent.
- B
Use its target value as its weighted sum.
- C
Calculate its weighted sum, then apply the activation function.
- D
Copy the H1 output without using its own incoming weights.
Correct answer
CCalculate its weighted sum, then apply the activation function.
Explanation
The content says to repeat the same two neuron operations for H2: calculate the weighted sum and then apply the activation function. It reports an H2 output of approximately 0.5968.
- A
- 23
Which quantities contribute to the weighted sum for output node O1 in the example?
- A
The errors at O1 and O2, and the sigmoid derivative
- B
The outputs of H1 and H2, their connecting weights, and the output-layer bias
- C
The target for O1, the target for O2, and the input-layer bias
- D
The two input values, their target values, and the hidden-layer bias
Correct answer
BThe outputs of H1 and H2, their connecting weights, and the output-layer bias
Explanation
The output-node weighted sum combines the outputs from the hidden nodes, the weights connecting them to O1, and the bias contribution.
- A
- 24
The example gives an O1 weighted sum of approximately 1.1059. What is the next step in calculating its predicted output?
- A
Apply the sigmoid function to the weighted sum
- B
Use the weighted sum as the O1 target
- C
Subtract the weighted sum from the O1 target and stop
- D
Pass the weighted sum directly to the input layer
Correct answer
AApply the sigmoid function to the weighted sum
Explanation
The neuron applies its sigmoid activation function to the weighted sum, producing an O1 prediction of approximately 0.7514.
- A
- 25
Which pair of target values is used for the two output nodes in the example?
- A
0.05 for O1 and 0.1 for O2
- B
0.99 for O1 and 0.01 for O2
- C
0.01 for O1 and 0.99 for O2
- D
0.35 for O1 and 0.6 for O2
Correct answer
C0.01 for O1 and 0.99 for O2
Explanation
The content identifies 0.01 and 0.99 as the target values for the two output nodes, respectively.
- A
- 26
Why does the forward pass compare each predicted output with its corresponding target?
- A
To determine which input node should be removed
- B
To calculate how far the prediction is from the desired output
- C
To apply the sigmoid function to the bias
- D
To convert each target into a connection weight
Correct answer
BTo calculate how far the prediction is from the desired output
Explanation
Comparing predicted and target values provides the error used to assess the network and guide weight and bias updates.
- A
- 27
Which formula matches the squared-error cost described for the output nodes?
- A
E=∑i(ti+oi)
- B
E=∑itioi2
- C
E=21∑i(ti−oi)2
- D
E=21∑i(ti−oi)
Correct answer
CE=21∑i(ti−oi)2
Explanation
The described error adds one-half of the squared target-minus-output difference for each output node.
- A
- 28
Why does switching from target-minus-prediction to prediction-minus-target leave the squared error unchanged?
- A
The bias cancels out the sign during the forward pass.
- B
Squaring makes the sign of the difference irrelevant.
- C
The sigmoid function converts every difference to zero.
- D
The two differences always have the same sign.
Correct answer
BSquaring makes the sign of the difference irrelevant.
Explanation
Reversing the subtraction changes only the sign, and squaring either difference gives the same result: (t−o)2=(o−t)2.
- A
- 29
How is the total error for the two output nodes obtained in the example?
- A
Multiply the two output predictions together.
- B
Subtract the O2 error from the O1 error.
- C
Add the error calculated for O1 to the error calculated for O2.
- D
Average the two target values and use that as the error.
Correct answer
CAdd the error calculated for O1 to the error calculated for O2.
Explanation
The total error is the sum of the separate output-node errors, EO1+EO2.
- A
- 30
The content reports an O1 error of about 0.27481 and an O2 error of about 0.02356. What approximate total error does it report?
- A
0.27481
- B
0.29837
- C
0.25125
- D
0.02356
Correct answer
B0.29837
Explanation
Adding the two reported output errors gives a total of approximately 0.29837.
- A
- 31
What does the training loop do if the current error has not reached the desired minimum?
- A
Replace the targets with the current predictions.
- B
Update weights and biases using gradient descent, then calculate the error again.
- C
Remove the output layer and repeat the same forward pass.
- D
Stop training and treat the current network as complete.
Correct answer
BUpdate weights and biases using gradient descent, then calculate the error again.
Explanation
If the error is not yet low enough, the described process updates weights and biases and repeats the forward and backward steps.
- A
- 32
What does the content say happens when the error reaches its minimum stopping condition?
- A
The target values are removed from the output layer.
- B
The model is considered ready to make predictions.
- C
The model continues updating until its error increases.
- D
The network returns to its initial weights and begins again.
Correct answer
BThe model is considered ready to make predictions.
Explanation
The content describes the model as ready for prediction once the error meets the minimum condition.
- A
- 33
How many repetitions does the content suggest may be used to reduce the error?
- A
Two iterations, one for each output node
- B
No iterations after the initial forward pass
- C
Thousands or ten thousand iterations
- D
Exactly one iteration
Correct answer
CThousands or ten thousand iterations
Explanation
The content says the repeated process may be carried out thousands or ten thousand times to reduce the error.
- A
- 34
What is the role of gradient descent in the described backpropagation process?
- A
It sets all predicted outputs equal to 0.5.
- B
It replaces each neuron's activation function.
- C
It calculates the original input values from the targets.
- D
It guides weight and bias updates intended to reduce the cost.
Correct answer
DIt guides weight and bias updates intended to reduce the cost.
Explanation
Gradient descent is used during backward propagation to update weights and biases so that the cost or error is reduced.
- A

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