I, too, was embarrassed about this, but I believe that this is how it works:
Starting at the end of the node, you check R, (the result) and E (expected to exit). If E = R, this is normal and you are not making any changes.
If E! = R, you see how far it was, based on threshold values and something else, and then slightly shift the weight or threshold up or down. Then, based on the new scales, you go back and assume if it was too high or too low, and repeat with a weaker effect.
I have never tried this algorithm, but it is basically a version of the idea, as I understand it.
source share