concept backpropagation in category machine learning

This is an excerpt from Manning's book Grokking Machine Learning.
When we talk about the gradient of the loss function, we are thinking of a derivative. The loss function of a neural network is complicated, since it involves the logarithm of the prediction, and the prediction itself is a complicated function (it contains several linear equations and sigmoids). Furthermore, we need to calculate the derivative with respect to many variables, one corresponding to each of the weights and biases of the neural network. Calculating these derivatives is out of the scope of this book, but if you want to work out the math, I encourage you to look for ‘backpropagation’ in any machine learning book or tutorial, and you’ll find the process.
However, can we think of a visual way to understand backpropagation? In Chapters 3, 4, and 5, we managed to explain gradient descent in a simple manner, such as moving a line closer to a point or farther from it. With neural networks, this is more complicated, but we can still find a mental picture. Every perceptron on the neural network receives some input and processes some output. This input comes from other classifiers. Some of the classifiers may classify our data well, others may classify it poorly. The output of each of these classifiers gets multiplied by a weight (these are the weights that we train during the backpropagation process). The backpropagation process simply increases the weights of the classifiers that train our data well, and decreases the weights of those who train our data poorly.
Figure 8.15. A mental picture of backpropagation. At each step of the training process, the weights of the edges get updated. If a classifier is good, its weight gets increased by a small amount, and if it is bad, its weight gets decreased.
![]()

This is an excerpt from Manning's book Algorithms of the Intelligent Web, Second Edition.
To provide the intuition behind backpropagation, we’re going to work with the same example as previously, the XOR function, but we’ll try to learn the weights rather than specify them by hand. Note also that from now on, the activation function will be assumed to be sigmoid (logistic). Figure 6.12 shows the graphical overview of our new network.