Training a neural network is easy with a simple for
loop.
While doing your own loop provides great flexibility, you might
want sometimes a quick way of training neural
networks. StochasticGradient
, a simple class
which does the job for you is provided as standard.