-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Gluon-ts support early stopping? #555
Comments
@kmosby1992 you're right, there is no such an option currently. Maybe one natural way of modifying the training loop to get that, is to have the learning rate reduction mechanism to actually halt training once the minimum learning rate is hit, and no progress is done withing the prescribed patience. What do you think? |
How about add an optional additional argument to the
|
@jackdent I think a callback mechanism like that could be useful in general, I agree we could have that option in the trainer. But even before that, maybe the current mechanism of learning rate scheduling should be adjusted so that once the patience is exceeded and the minimum stepsize is reached, the iterations stop. |
I'd love to see a callback mechanism being implemented for the |
@kmosby1992 the changes in #701 now allow for early stopping: essentially, the learning rate scheduler stop the training loop once the loss stops decreasing and the learning rate has reached the minimum @jackdent @MaximilianProll I'll open a separate issue for the callback mechanism |
Thanks a lot, @lostella, can you link the issue here once it's created? |
@MaximilianProll see #706 |
I'd also love to see an implementation of callbacks. Would you suggest where to start if I want to implement a callback method? |
How exactly does the early stopping work? Is there a way to stop training if the validation loss does not decrease for a given number of iterations? As far as I understand the code, the |
There is a mechanism for early_stopping in the lrs of the trainer: Once That said, there are probably more intuitive ways to set this behaviour. |
Does Gluon-ts support early stopping (for example: stop training after the loss fails to reduce after 50 epochs)? I see that we can set the learning rate to reduce if the loss fails to go down but could not find any options for early stopping
The text was updated successfully, but these errors were encountered: