remove initial training error computation in each optimize method.
(Error can be only generated after the first iteration)