During training, run net on examples and compare
net's output (
) to desired output (
)
Weights are adjusted after each training step using function
=
+ (
- y)x
Optionally, the threshold can be adjusted as well using function
=
- (
- y)
Notice that x is the value of the input feature, thus weights are
changed ONLY for nodes that are activated (used in the computation)