4.23 How a network learns: the five learning rules
You can define learning as adaptation of the free parameters, and apply error-correction, memory-based, Hebbian, competitive and Boltzmann learning, including the delta rule and the activity product rule with a forgetting factor.
Before:01a. Linear Algebra01b. Calculus and Optimisation01c. Probability01d. Statistics and Inference02. Python — Basics to Advanced
Learning here has a precise meaning: the free parameters of a network are adapted by stimulation from the environment, and the type of learning is decided by how that adaptation happens. Five rules cover the ground, and they are genuinely different ideas rather than variations on one. The two worth working by hand are the delta rule, because every supervised method descends from it, and Hebb's rule, because it learns with no teacher at all and shows why an unbounded rule needs a forgetting term.
Work through these
Define learning as adaptation of the free parameters by the environment
The weights change under stimulation from outside, and the manner of that change is what names the type of learning. Holding to this definition is what keeps the five rules below comparable.
Apply error-correction learning and the delta rule
The difference between the desired and the actual output drives the weight change, in steps, until the correction stops. It is also called the Widrow-Hoff rule, and every supervised method later is a descendant.
Apply memory-based learning, and the nearest neighbour and k-nearest neighbour rules
All the examples are stored, and a new input is answered by the stored ones nearest to it. It needs a distance and a neighbourhood, and it does no work at all until a question arrives.
State Hebb's law in its two halves, and apply the activity product rule
Units that fire together strengthen the connection between them, and units that fire out of step weaken it. The weight change is the product of the two activities and a learning rate.
Add a forgetting factor, and say what problem it fixes
Hebb's rule on its own can only increase weights, so they grow without limit. Subtracting a small multiple of the current weight bounds that growth while still allowing learning.
Work Hebbian learning through a small example step by step
Initialise small random weights, compute the output, update the weights, repeat. Doing the arithmetic once on a tiny example is what makes the rule concrete rather than a formula on a page.
Distinguish competitive and Boltzmann learning from the other three
In one, units compete and only the winner adapts, which produces a division of labour among them. In the other, weights change by a stochastic rule taken from statistical physics.
Sign in to keep your progress.
Free resources
Links last checked 29 Aug 2026.
Stuck here?
Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.
Checking your session…
Topics shown in module order.