Online learning with nonlinear models