AI & ML Atlas
Neural NetworksalgorithmInteractive simulation
Delta Rule
Adjusts each weight in proportion to the error and its input (the LMS rule).
The idea
For a single linear (or differentiable) unit, the gradient of the squared error with respect to a weight is the error times the input. Moving the weight a little against this gradient reduces the error: Δw = η (target − output) x. Backpropagation generalises it to many layers.
Δwᵢ = η (t − o) xᵢ
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- class 0
- class 1
- decision line
Weights start at zero: no line yet. The delta rule will nudge the line after every pass.
1/15
The line is where the neuron's weighted sum crosses zero.
Step by step
- 1Compute the output o = w·x.
- 2Compute the error t − o.
- 3Change each weight by η × error × its input.
- 4Repeat over the examples.
Where it is used
Adaptive filters, a stepping stone to backpropagation.
Watch out for
Limited to what a single layer can represent.