Learning by on-line gradient descent | Synapse