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

  • 28Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Neuron Fundamentals

What two operations does an artificial neuron perform?

28 questions

  1. 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. 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 111: w1x1+w2x2+b(1)w_1x_1 + w_2x_2 + b(1)w1​x1​+w2​x2​+b(1).

    Explanation

    The weights scale the inputs, and the bias contributes an additional adjustable term.

  3. 3

    What layers are shown in the neural-network architecture, and what do the labels I1I_1I1​, H1H_1H1​, and O1O_1O1​ represent?

    Model answer

    The architecture has input, hidden, and output layers. I1I_1I1​, H1H_1H1​, and O1O_1O1​ denote nodes in those respective layers.

    Explanation

    The example network also has a second node in each layer.

  4. 4

    What do the arrows between nodes represent, and what role does the bias input of 111 play?

    Model answer

    The arrows represent weights on connections between nodes. The bias input of 111 lets the bias contribute to the neuron's weighted sum.

    Explanation

    The bias is included as an additional weighted term in the sum.

  5. 5

    Write the sigmoid activation function and its derivative.

    Model answer

    The sigmoid is 

    Explanation

    The sigmoid derivative can be written in terms of the sigmoid's output, which is useful in backpropagation.

  6. 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 000 and 111, while hyperbolic tangent outputs values between −1-1−1 and 111.

    Explanation

    The content also names ReLU as another activation-function type.

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

    For the example inputs I1=0.05I_1=0.05I1​=0.05 and I2=0.1I_2=0.1I2​=0.1, weights w1=0.15w_1=0.15w1​=0.15 and w2=0.2w_2=0.2w2​=0.2, and bias b1=0.35b_1=0.35b1​=0.35, calculate the weighted sum at H1H_1H1​.

    Model answer

    netH1=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775net_{H_1}=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775netH1​​=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775.

    Explanation

    The bias is multiplied by its input, which is 111.

  10. 10

    How is the output of hidden node H1H_1H1​ calculated from its weighted sum?

    Model answer

    Apply sigmoid to the weighted sum: outH1=11+e−netH1out_{H_1}=\frac{1}{1+e^{-net_{H_1}}}outH1​​=1+e−netH1​​1​. For netH1=0.3775net_{H_1}=0.3775netH1​​=0.3775, the output is approximately 0.593270.593270.59327.

    Explanation

    The activation function transforms the weighted sum into the node's output.

  11. 11

    What is the approximate sigmoid output of hidden node H2H_2H2​ in the worked example?

    Model answer

    The example gives outH2≈0.59688out_{H_2}\approx 0.59688outH2​​≈0.59688.

    Explanation

    It is calculated by finding H2H_2H2​'s weighted sum and applying the same sigmoid operation used for H1H_1H1​.

  12. 12

    How is the weighted sum at output node O1O_1O1​ formed from the hidden-layer outputs?

    Model answer

    It is netO1=w5outH1+w6outH2+b2(1)net_{O_1}=w_5out_{H_1}+w_6out_{H_2}+b_2(1)netO1​​=w5​outH1​​+w6​outH2​​+b2​(1).

    Explanation

    Each hidden-node output is multiplied by its connection weight, and the bias term is added.

  13. 13

    Using the example values w5=0.4w_5=0.4w5​=0.4, w6=0.45w_6=0.45w6​=0.45, b2=0.6b_2=0.6b2​=0.6, outH1≈0.59327out_{H_1}\approx0.59327outH1​​≈0.59327, and outH2≈0.59688out_{H_2}\approx0.59688outH2​​≈0.59688, what is netO1net_{O_1}netO1​​ approximately?

    Model answer

    netO1≈0.4(0.59327)+0.45(0.59688)+0.6=1.10591net_{O_1}\approx0.4(0.59327)+0.45(0.59688)+0.6=1.10591netO1​​≈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. 14

    How is the predicted output of node O1O_1O1​ obtained from netO1net_{O_1}netO1​​, and what value does the example report?

    Model answer

    Apply sigmoid to netO1net_{O_1}netO1​​; the example reports outO1≈0.75137out_{O_1}\approx0.75137outO1​​≈0.75137.

    Explanation

    The same weighted-sum-then-activation process is used at output nodes as at hidden nodes.

  15. 15

    What predicted output does the worked example report for output node O2O_2O2​?

    Model answer

    The example reports outO2≈0.77293out_{O_2}\approx0.77293outO2​​≈0.77293.

    Explanation

    It is found by calculating O2O_2O2​'s weighted sum and applying sigmoid.

  16. 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. 17

    What target values are assigned to output nodes O1O_1O1​ and O2O_2O2​ in the example?

    Model answer

    The targets are 0.010.010.01 for O1O_1O1​ and 0.990.990.99 for O2O_2O2​.

    Explanation

    These target values are compared with the predicted outputs to calculate error.

  18. 18

    Write the squared-error formula used for one output node.

    Model answer

    For a target ttt and predicted output ooo, the error is E=12(t−o)2E=\frac{1}{2}(t-o)^2E=21​(t−o)2.

    Explanation

    The factor of one-half is included in the cost formula described in the content.

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

  20. 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+EO2E_{total}=E_{O_1}+E_{O_2}Etotal​=EO1​​+EO2​​.

    Explanation

    The network's total error combines the contributions from both outputs.

  21. 21

    What individual output-node errors and total error does the worked example report?

    Model answer

    It reports EO1≈0.274811E_{O_1}\approx0.274811EO1​​≈0.274811, EO2≈0.023560E_{O_2}\approx0.023560EO2​​≈0.023560, and Etotal≈0.298371E_{total}\approx0.298371Etotal​≈0.298371.

    Explanation

    The total is the sum of the two output-node errors.

  22. 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. 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. 24

    How is the sigmoid derivative useful in backpropagation?

    Model answer

    The derivative σ′(x)=σ(x)(1−σ(x))\sigma'(x)=\sigma(x)(1-\sigma(x))σ′(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. 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. 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. 27

    What iteration counts are mentioned as examples for repeating the training process?

    Model answer

    The content gives 1,0001{,}0001,000 or 10,00010{,}00010,000 iterations as examples.

    Explanation

    These are example counts for repeating the forward and backward passes.

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

1 of 28
Question 1 of 28

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent