Train with a sample at a time. Introduce epochs concept too. But cannot specify the error bound at the moment.