Widrow-Hoff Training Method(Incremental)
1. Set the weights to small random values (e.g. between -.1 and .1)
2. Set the learning rate a << 1.
3. Repeat // until training error is low enough
Set total squared error = 0;
For each training example e
w[j] = w[j] + a*(d[e] - o[e])*x[j,e]; // x[0,e] is always 1
error = error + square(d[e] - o[e]);
until error < desired_value.
4. Store weight vector w in a file.