-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Early stopping callback #2151
Comments
Hi! thanks for your contribution!, great first issue! |
@jeremyjordan mind have a look ^^ |
What version of pytorch-lightning are you using? |
For the record, I arrived at this issue because in version 0.7.6 I observe early stopping not behaving properly. |
I have been puzzled about the issue of a CustomCallback never stopping in |
Hi. I'm not sure if I should create a separate issue, but there is a very confusing bug regarding early stopping (still in the current master branch). The documentation states
However, this is not true due to the following bug.
Unless I'm misunderstanding something, the the behaviour as the documentation says it should be
In any case, the 'or None' clause will never be True and therefore is redundant as of now. David |
Hi. I'm using version 0.7.6. |
There are a number of issues with early stopping, I have a PR (#1504) out to fix them. I have added a new test to cover your case @adeboissiere. |
I'm also having issues. It seems to be only using the default values regardless and also the default values do not cause any early stopping to occur. |
Currently being worked on in #1504 |
🐛 Bug
Early stopping does not have the desired effect when creating a custom callback. Even when creating a custom callback with the default values, the training will stop before the early stopping before the conditions are met.
To Reproduce
Here are the validation steps in the model:
Expected behavior
In my case, training stops after 2 epochs, whether the validation loss increases or not. The callback behavior should be the same as the default. When I don't pass a custom callback, it works fine. I'm probably doing something wrong.
Environment
conda
,pip
, source): pipThanks'!
The text was updated successfully, but these errors were encountered: