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

  • 32Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Neural Network Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What two operations does an artificial neuron perform?

Tap to flipClick to flipspace

It computes a weighted sum of its inputs, then applies an activation function to that sum.

Or swipe the card

32 cards

  1. What two operations does an artificial neuron perform?

    It computes a weighted sum of its inputs, then applies an activation function to that sum.

  2. What is the weighted-sum formula for a neuron with two inputs and a bias?

    z=w1x1+w2x2+bz = w_1x_1 + w_2x_2 + bz=w1​x1​+w2​x2​+b

  3. Why is the bias multiplied by 111 in the weighted-sum calculation?

    The bias is treated as a weight connected to a constant input whose value is 111.

  4. What are the three layers shown in the neural-network example, and which nodes belong to each?

    The input layer contains i1i_1i1​ and i2i_2i2​; the hidden layer contains h1h_1h1​ and h2h_2h2​; the output layer contains o1o_1o1​ and o2o_2o2​.

  5. What do the arrows between nodes represent in the network diagram?

    The arrows represent weights connecting the nodes.

  6. What role does an activation function play in a neuron?

    It transforms the neuron's weighted sum into its output and introduces nonlinearity into the network.

  7. What is the sigmoid activation function?

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

  8. What is the derivative of the sigmoid function in terms of its output?

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

  9. What is the range of the sigmoid function?

    Its output lies between 000 and 111.

  10. What is the range of the hyperbolic tangent activation function?

    Its output lies between −1-1−1 and 111.

  11. Which activation function is used in the worked neural-network example?

    The sigmoid function.

  12. In which direction does forward propagation move through the network?

    From the input layer through the hidden layer to the output layer.

  13. For the example's first hidden node, what is the weighted sum using i1=0.05i_1=0.05i1​=0.05, i2=0.1i_2=0.1i2​=0.1, weights 0.150.150.15 and 0.20.20.2, and bias 0.350.350.35?

    zh1=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775z_{h_1} = 0.15(0.05) + 0.2(0.1) + 0.35(1) = 0.3775zh1​​=0.15(0.05)+0.2(0.1)+0.35(1)=0.3775

  14. How is the output of hidden node h1h_1h1​ calculated from its weighted sum of 0.37750.37750.3775?

    h1=σ(0.3775)≈0.59327h_1 = \sigma(0.3775) \approx 0.59327h1​=σ(0.3775)≈0.59327

  15. What is the stated sigmoid output for hidden node h2h_2h2​ in the worked example?

    Approximately 0.596880.596880.59688.

  16. How is the weighted sum for output node o1o_1o1​ formed?

    zo1=w5h1+w6h2+b2(1)z_{o_1} = w_5h_1 + w_6h_2 + b_2(1)zo1​​=w5​h1​+w6​h2​+b2​(1)

  17. Using the example values w5=0.4w_5=0.4w5​=0.4, w6=0.45w_6=0.45w6​=0.45, h1≈0.59327h_1\approx0.59327h1​≈0.59327, h2≈0.59688h_2\approx0.59688h2​≈0.59688, and b2=0.6b_2=0.6b2​=0.6, what is the weighted sum for o1o_1o1​?

    zo1≈1.10591z_{o_1} \approx 1.10591zo1​​≈1.10591

  18. What predicted output does the example give for output node o1o_1o1​?

    o1≈0.75137o_1 \approx 0.75137o1​≈0.75137

  19. What predicted output does the example give for output node o2o_2o2​?

    o2≈0.77293o_2 \approx 0.77293o2​≈0.77293

  20. What does the network compare its predicted outputs against?

    The target, or actual, values. In the example, the targets are 0.010.010.01 for o1o_1o1​ and 0.990.990.99 for o2o_2o2​.

  21. What squared-error formula is used for an output node?

    E=12(t−y)2E = \frac{1}{2}(t-y)^2E=21​(t−y)2, where ttt is the target and yyy is the predicted output.

  22. Does reversing the order of target and prediction change the squared error?

    No. (t−y)2=(y−t)2(t-y)^2=(y-t)^2(t−y)2=(y−t)2, so either subtraction order gives the same squared error.

  23. Using target 0.010.010.01 and prediction 0.7513650.7513650.751365 for o1o_1o1​, what is its squared error?

    Eo1=12(0.01−0.751365)2≈0.27481E_{o_1} = \frac{1}{2}(0.01-0.751365)^2 \approx 0.27481Eo1​​=21​(0.01−0.751365)2≈0.27481

  24. Using target 0.990.990.99 and prediction 0.7729280.7729280.772928 for o2o_2o2​, what is its squared error?

    Eo2=12(0.99−0.772928)2≈0.02356E_{o_2} = \frac{1}{2}(0.99-0.772928)^2 \approx 0.02356Eo2​​=21​(0.99−0.772928)2≈0.02356

  25. How is the total error in the two-output example calculated?

    Add the output-node errors: Etotal=Eo1+Eo2≈0.29837E_{\text{total}} = E_{o_1}+E_{o_2} \approx 0.29837Etotal​=Eo1​​+Eo2​​≈0.29837.

  26. What is the purpose of calculating error during forward propagation?

    To measure how far the predicted outputs are from the target outputs.

  27. In which direction does backpropagation move through the network?

    Backward from the output layer toward the input layer.

  28. What is updated during backpropagation, and what method is used?

    The network's weights and biases are updated using gradient descent.

  29. What is the goal of the gradient-descent updates in backpropagation?

    To reduce the cost function, or error, toward a minimum.

  30. What is the repeated training cycle described for a neural network?

    Run forward propagation to calculate outputs and error, backpropagate the error to update weights and biases, then run forward propagation again.

  31. How many times might the example's training cycle be repeated?

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

  32. According to the described training process, when is the model considered ready for prediction?

    When the error is sufficiently small or has reached the chosen minimum.

Card 1 of 32
Card 1 of 32

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent