Closed NEGU93 closed 1 year ago
Why ()
and not None
? Is it to match with other parameters?
Sorry my delay, it was a busy day.
I tried to copy the previous structure... the data goes as the max_iterations
parameter. It's just a "no max iterations will be a max_iterations = ()
" and then an unsigned int... (same as the early_stop idea)
But that's the only reason... Personally, under other circumstances, I'd like the None
idea better but I thought to make it similar to the existing code.
So to conclude, yes, it is as you say, to match with other parameters.
Early Stop Implementation. The implementation is changed to the following:
Where
early_stop = ()
would be not to do early stop. Otherwise the number must be an integer, which will mean the number of epochs as tolerance, it means that if the tendency of the Error of the test set has increased for more than the giving tolerance epochs, then stop the training.I have examples and plots and analysis on the optimal value for early stop should you want to add some to the documentation page.
Posible Issues and TODO things:
print "[training] Converged to error bound (%.4g) with error %.4g." % ( ERROR_LIMIT, error )
which I think will not be the case if early stop was applied.