On-line Learning from Finite Training Sets in Nonlinear Networks