1. Home
  2. Explore
  3. Computer Science
  4. Backpropagation Algorithm

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Backpropagation Algorithm

  • 34Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Neuron Operations

What two operations does an artificial neuron perform on its incoming signals?

34 questions

  1. 1

    What two operations does an artificial neuron perform on its incoming signals?

    1. A

      It applies an activation function and then changes the input values.

    2. B

      It compares each input with the target and removes incorrect signals.

    3. C

      It calculates a weighted sum and applies an activation function.

    4. D

      It calculates an average and selects the largest input.

    Correct answer
    C

    It 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.

  2. 2

    How does a bias contribute to the weighted sum entering a neuron when its associated input is set to 111?

    1. A

      It subtracts the largest weighted input.

    2. B

      It adds the bias value to the weighted sum.

    3. C

      It replaces the activation function's output.

    4. D

      It multiplies every input by the bias value.

    Correct answer
    B

    It adds the bias value to the weighted sum.

    Explanation

    A bias with an associated input of 111 contributes b×1b \times 1b×1, which is the bias value itself.

  3. 3

    Which expression gives the weighted sum entering a neuron with inputs x1x_1x1​ and x2x_2x2​, weights w1w_1w1​ and w2w_2w2​, and bias bbb?

    1. A

      x1+x2+w1w2bx_1 + x_2 + w_1w_2bx1​+x2​+w1​w2​b

    2. B

      w1x1+w2x2+bw_1x_1 + w_2x_2 + bw1​x1​+w2​x2​+b

    3. C

      w1x2+w2x1−bw_1x_2 + w_2x_1 - bw1​x2​+w2​x1​−b

    4. D

      (w1+x1)(w2+x2)+b(w_1 + x_1)(w_2 + x_2) + b(w1​+x1​)(w2​+x2​)+b

    Correct answer
    B

    w1x1+w2x2+bw_1x_1 + w_2x_2 + bw1​x1​+w2​x2​+b

    Explanation

    Each input is multiplied by its corresponding weight, and the bias contribution is added to the resulting sum.

  4. 4

    In the described network, which group of nodes receives the original inputs?

    1. A

      The bias layer, containing the target values

    2. B

      The input layer, containing I1I_1I1​ and I2I_2I2​

    3. C

      The hidden layer, containing H1H_1H1​ and H2H_2H2​

    4. D

      The output layer, containing O1O_1O1​ and O2O_2O2​

    Correct answer
    B

    The input layer, containing I1I_1I1​ and I2I_2I2​

    Explanation

    The content identifies I1I_1I1​ and I2I_2I2​ as nodes in the input layer; H1H_1H1​ and H2H_2H2​ are hidden-layer nodes, and O1O_1O1​ and O2O_2O2​ are output nodes.

  5. 5

    Why are no incoming weighted sums calculated for the input nodes in the described forward-pass calculation?

    1. A

      They are the input nodes, so no weighted connections into them are being summed.

    2. B

      They contain no numerical values until backward propagation begins.

    3. C

      They already contain the final predictions for the network.

    4. D

      They apply the output error directly to the target values.

    Correct answer
    A

    They 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.

  6. 6

    What does the activation function do to a neuron's weighted sum?

    1. A

      It calculates the total error across the network.

    2. B

      It replaces the weights with the target values.

    3. C

      It transforms the weighted sum into the neuron's output.

    4. D

      It sends the weighted sum back to the input layer.

    Correct answer
    C

    It 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.

  7. 7

    Which formula represents the sigmoid activation function described in the content?

    1. A

      σ(x)=11−ex\sigma(x) = \frac{1}{1 - e^x}σ(x)=1−ex1​

    2. B

      σ(x)=x(1−x)\sigma(x) = x(1 - x)σ(x)=x(1−x)

    3. C

      σ(x)=1+e−x\sigma(x) = 1 + e^{-x}σ(x)=1+e−x

    4. D

      σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)=1+e−x1​

    Correct answer
    D

    σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)=1+e−x1​

    Explanation

    The sigmoid function is given as σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)=1+e−x1​.

  8. 8

    If a neuron's weighted sum is zzz, which expression gives the derivative of the sigmoid at that value?

    1. A

      z(1−z)z(1 - z)z(1−z)

    2. B

      1−σ(z)1 - \sigma(z)1−σ(z)

    3. C

      σ(z)(1−σ(z))\sigma(z)(1 - \sigma(z))σ(z)(1−σ(z))

    4. D

      σ(z)+1\sigma(z) + 1σ(z)+1

    Correct answer
    C

    σ(z)(1−σ(z))\sigma(z)(1 - \sigma(z))σ(z)(1−σ(z))

    Explanation

    The derivative of the sigmoid is expressed as σ(x)(1−σ(x))\sigma(x)(1 - \sigma(x))σ(x)(1−σ(x)); at weighted sum zzz, this becomes σ(z)(1−σ(z))\sigma(z)(1 - \sigma(z))σ(z)(1−σ(z)).

  9. 9

    A neuron uses the sigmoid function, and its weighted sum changes substantially. What range can its output take according to the content?

    1. A

      Only the values 000 and 111

    2. B

      Between −1-1−1 and 111

    3. C

      Any value from negative to positive infinity

    4. D

      Between 000 and 111

    Correct answer
    D

    Between 000 and 111

    Explanation

    The content states that sigmoid outputs fall between 000 and 111.

  10. 10

    How does the stated output range of hyperbolic tangent compare with the sigmoid range?

    1. A

      Hyperbolic tangent ranges from 000 to 111, while sigmoid ranges from −1-1−1 to 111.

    2. B

      Both functions produce only values between 000 and 111.

    3. C

      Both functions range from 000 to positive infinity.

    4. D

      Hyperbolic tangent ranges from −1-1−1 to 111, while sigmoid ranges from 000 to 111.

    Correct answer
    D

    Hyperbolic tangent ranges from −1-1−1 to 111, while sigmoid ranges from 000 to 111.

    Explanation

    The content gives the hyperbolic tangent range as −1-1−1 to 111 and the sigmoid range as 000 to 111.

  11. 11

    What role does an activation function play in the network, as described in the content?

    1. A

      It represents a neuron's activation state and introduces nonlinearity.

    2. B

      It stores the target output and removes weighted connections.

    3. C

      It calculates the cost without using a neuron's inputs.

    4. D

      It guarantees that every network output equals its target.

    Correct answer
    A

    It 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.

  12. 12

    Which set contains only activation functions mentioned in the content?

    1. A

      Bias, ReLU, and weighted sum

    2. B

      Gradient descent, sigmoid, and cost function

    3. C

      Target value, hyperbolic tangent, and gradient descent

    4. D

      Sigmoid, ReLU, and hyperbolic tangent

    Correct answer
    D

    Sigmoid, ReLU, and hyperbolic tangent

    Explanation

    The content names sigmoid, ReLU, and hyperbolic tangent as activation-function types.

  13. 13

    In which direction does forward propagation move through the described network?

    1. A

      From the input layer toward the output layer

    2. B

      From the output layer toward the input layer

    3. C

      From the bias values toward the input nodes only

    4. D

      From the hidden layer directly back to the target values

    Correct answer
    A

    From the input layer toward the output layer

    Explanation

    Forward propagation carries information from the inputs through the network to calculate the output predictions.

  14. 14

    What is the main result calculated during forward propagation?

    1. A

      Predicted output values that can be compared with the targets

    2. B

      Target values generated from the hidden layer

    3. C

      Updated weights that have already minimized the cost

    4. D

      The derivatives of all input values

    Correct answer
    A

    Predicted 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.

  15. 15

    In which direction does backward propagation move in the described example?

    1. A

      From an input node forward to the output layer

    2. B

      From an output node back toward the input layer

    3. C

      From the target values toward the input data only

    4. D

      From the hidden layer outward without reaching the outputs

    Correct answer
    B

    From 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.

  16. 16

    What is the purpose of updating weights and biases during backward propagation?

    1. A

      To use gradient descent to reduce the cost or error

    2. B

      To make the predicted outputs equal to the inputs

    3. C

      To increase the cost so the network changes more quickly

    4. D

      To replace the activation function with a target value

    Correct answer
    A

    To 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.

  17. 17

    After a backward pass updates the network's weights and biases, what does the described training process do next?

    1. A

      Set every target value equal to its corresponding weight

    2. B

      Stop calculating outputs and remove the hidden layer

    3. C

      Run forward propagation again using the updated parameters

    4. D

      Discard the updated parameters and keep the original predictions

    Correct answer
    C

    Run 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.

  18. 18

    Which statement correctly contrasts the main roles of forward and backward propagation?

    1. A

      Forward propagation minimizes error by itself; backward propagation produces the first predictions.

    2. B

      Forward propagation updates targets; backward propagation calculates the original inputs.

    3. C

      Forward propagation calculates predictions; backward propagation updates parameters to reduce error.

    4. D

      Forward propagation calculates derivatives only; backward propagation applies the activation function only.

    Correct answer
    C

    Forward 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.

  19. 19

    For the example hidden node H1H_1H1​, the inputs are 0.050.050.05 and 0.10.10.1, the weights are 0.150.150.15 and 0.20.20.2, and the bias is 0.350.350.35. What weighted sum does the content calculate?

    1. A

      0.37750.37750.3775

    2. B

      0.42750.42750.4275

    3. C

      0.05250.05250.0525

    4. D

      0.32750.32750.3275

    Correct answer
    A

    0.37750.37750.3775

    Explanation

    Using 0.15(0.05)+0.2(0.1)+0.35(1)0.15(0.05) + 0.2(0.1) + 0.35(1)0.15(0.05)+0.2(0.1)+0.35(1) gives 0.37750.37750.3775.

  20. 20

    Once the weighted sum for H1H_1H1​ is 0.37750.37750.3775, what operation produces the node's output in the example?

    1. A

      Multiply 0.37750.37750.3775 by the bias a second time

    2. B

      Subtract 0.37750.37750.3775 from the target value

    3. C

      Apply the sigmoid function to 0.37750.37750.3775

    4. D

      Add the two target values to 0.37750.37750.3775

    Correct answer
    C

    Apply the sigmoid function to 0.37750.37750.3775

    Explanation

    The example applies the sigmoid activation to the weighted sum. This produces an H1H_1H1​ output of approximately 0.593270.593270.59327.

  21. 21

    What approximate output for hidden node H1H_1H1​ is reported after applying sigmoid to its weighted sum?

    1. A

      0.593270.593270.59327

    2. B

      0.37750.37750.3775

    3. C

      0.298370.298370.29837

    4. D

      0.751370.751370.75137

    Correct answer
    A

    0.593270.593270.59327

    Explanation

    Applying sigmoid to the H1H_1H1​ weighted sum of 0.37750.37750.3775 gives an output of approximately 0.593270.593270.59327.

  22. 22

    How does the forward-pass calculation for H2H_2H2​ relate to the calculation for H1H_1H1​?

    1. A

      Calculate its error first, then apply gradient descent.

    2. B

      Use its target value as its weighted sum.

    3. C

      Calculate its weighted sum, then apply the activation function.

    4. D

      Copy the H1H_1H1​ output without using its own incoming weights.

    Correct answer
    C

    Calculate its weighted sum, then apply the activation function.

    Explanation

    The content says to repeat the same two neuron operations for H2H_2H2​: calculate the weighted sum and then apply the activation function. It reports an H2H_2H2​ output of approximately 0.59680.59680.5968.

  23. 23

    Which quantities contribute to the weighted sum for output node O1O_1O1​ in the example?

    1. A

      The errors at O1O_1O1​ and O2O_2O2​, and the sigmoid derivative

    2. B

      The outputs of H1H_1H1​ and H2H_2H2​, their connecting weights, and the output-layer bias

    3. C

      The target for O1O_1O1​, the target for O2O_2O2​, and the input-layer bias

    4. D

      The two input values, their target values, and the hidden-layer bias

    Correct answer
    B

    The outputs of H1H_1H1​ and H2H_2H2​, 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 O1O_1O1​, and the bias contribution.

  24. 24

    The example gives an O1O_1O1​ weighted sum of approximately 1.10591.10591.1059. What is the next step in calculating its predicted output?

    1. A

      Apply the sigmoid function to the weighted sum

    2. B

      Use the weighted sum as the O1O_1O1​ target

    3. C

      Subtract the weighted sum from the O1O_1O1​ target and stop

    4. D

      Pass the weighted sum directly to the input layer

    Correct answer
    A

    Apply the sigmoid function to the weighted sum

    Explanation

    The neuron applies its sigmoid activation function to the weighted sum, producing an O1O_1O1​ prediction of approximately 0.75140.75140.7514.

  25. 25

    Which pair of target values is used for the two output nodes in the example?

    1. A

      0.050.050.05 for O1O_1O1​ and 0.10.10.1 for O2O_2O2​

    2. B

      0.990.990.99 for O1O_1O1​ and 0.010.010.01 for O2O_2O2​

    3. C

      0.010.010.01 for O1O_1O1​ and 0.990.990.99 for O2O_2O2​

    4. D

      0.350.350.35 for O1O_1O1​ and 0.60.60.6 for O2O_2O2​

    Correct answer
    C

    0.010.010.01 for O1O_1O1​ and 0.990.990.99 for O2O_2O2​

    Explanation

    The content identifies 0.010.010.01 and 0.990.990.99 as the target values for the two output nodes, respectively.

  26. 26

    Why does the forward pass compare each predicted output with its corresponding target?

    1. A

      To determine which input node should be removed

    2. B

      To calculate how far the prediction is from the desired output

    3. C

      To apply the sigmoid function to the bias

    4. D

      To convert each target into a connection weight

    Correct answer
    B

    To 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.

  27. 27

    Which formula matches the squared-error cost described for the output nodes?

    1. A

      E=∑i(ti+oi)E = \sum_i (t_i + o_i)E=∑i​(ti​+oi​)

    2. B

      E=∑itioi2E = \sum_i t_i o_i^2E=∑i​ti​oi2​

    3. C

      E=12∑i(ti−oi)2E = \frac{1}{2}\sum_i (t_i - o_i)^2E=21​∑i​(ti​−oi​)2

    4. D

      E=12∑i(ti−oi)E = \frac{1}{2}\sum_i (t_i - o_i)E=21​∑i​(ti​−oi​)

    Correct answer
    C

    E=12∑i(ti−oi)2E = \frac{1}{2}\sum_i (t_i - o_i)^2E=21​∑i​(ti​−oi​)2

    Explanation

    The described error adds one-half of the squared target-minus-output difference for each output node.

  28. 28

    Why does switching from target-minus-prediction to prediction-minus-target leave the squared error unchanged?

    1. A

      The bias cancels out the sign during the forward pass.

    2. B

      Squaring makes the sign of the difference irrelevant.

    3. C

      The sigmoid function converts every difference to zero.

    4. D

      The two differences always have the same sign.

    Correct answer
    B

    Squaring 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(t-o)^2 = (o-t)^2(t−o)2=(o−t)2.

  29. 29

    How is the total error for the two output nodes obtained in the example?

    1. A

      Multiply the two output predictions together.

    2. B

      Subtract the O2O_2O2​ error from the O1O_1O1​ error.

    3. C

      Add the error calculated for O1O_1O1​ to the error calculated for O2O_2O2​.

    4. D

      Average the two target values and use that as the error.

    Correct answer
    C

    Add the error calculated for O1O_1O1​ to the error calculated for O2O_2O2​.

    Explanation

    The total error is the sum of the separate output-node errors, EO1+EO2E_{O_1} + E_{O_2}EO1​​+EO2​​.

  30. 30

    The content reports an O1O_1O1​ error of about 0.274810.274810.27481 and an O2O_2O2​ error of about 0.023560.023560.02356. What approximate total error does it report?

    1. A

      0.274810.274810.27481

    2. B

      0.298370.298370.29837

    3. C

      0.251250.251250.25125

    4. D

      0.023560.023560.02356

    Correct answer
    B

    0.298370.298370.29837

    Explanation

    Adding the two reported output errors gives a total of approximately 0.298370.298370.29837.

  31. 31

    What does the training loop do if the current error has not reached the desired minimum?

    1. A

      Replace the targets with the current predictions.

    2. B

      Update weights and biases using gradient descent, then calculate the error again.

    3. C

      Remove the output layer and repeat the same forward pass.

    4. D

      Stop training and treat the current network as complete.

    Correct answer
    B

    Update 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.

  32. 32

    What does the content say happens when the error reaches its minimum stopping condition?

    1. A

      The target values are removed from the output layer.

    2. B

      The model is considered ready to make predictions.

    3. C

      The model continues updating until its error increases.

    4. D

      The network returns to its initial weights and begins again.

    Correct answer
    B

    The model is considered ready to make predictions.

    Explanation

    The content describes the model as ready for prediction once the error meets the minimum condition.

  33. 33

    How many repetitions does the content suggest may be used to reduce the error?

    1. A

      Two iterations, one for each output node

    2. B

      No iterations after the initial forward pass

    3. C

      Thousands or ten thousand iterations

    4. D

      Exactly one iteration

    Correct answer
    C

    Thousands or ten thousand iterations

    Explanation

    The content says the repeated process may be carried out thousands or ten thousand times to reduce the error.

  34. 34

    What is the role of gradient descent in the described backpropagation process?

    1. A

      It sets all predicted outputs equal to 0.50.50.5.

    2. B

      It replaces each neuron's activation function.

    3. C

      It calculates the original input values from the targets.

    4. D

      It guides weight and bias updates intended to reduce the cost.

    Correct answer
    D

    It 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.

Question 1 of 34
Question 1 of 34

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent