Closed alexkruegger closed 9 years ago
The var 'loss0' has been initialized only once at line (if loss0 == nil then loss0 = loss[1] end) so all next check had to use this first train_losses[1] value. This PR try to fix early stopping functionality.
Thanks, but the way it is right now is the intended functionality. If we ever reach loss 3x greater than initial loss we halt out.
The var 'loss0' has been initialized only once at line (if loss0 == nil then loss0 = loss[1] end) so all next check had to use this first train_losses[1] value. This PR try to fix early stopping functionality.