Added learning curve monitoring.
[BUG] In some epoch the weights become NaN.