-
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
Removing unecessary early stopping calls #1863
Removing unecessary early stopping calls #1863
Conversation
i think there was a reason for both of those. need to think about this more |
@williamFalcon Directly calling the callback methods (eg. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this also fixes an issue with "patience".
If so I would also list it in the changelog that patience is fixed.
This pull request is now in conflict... :( |
Codecov Report
@@ Coverage Diff @@
## master #1863 +/- ##
======================================
- Coverage 88% 88% -0%
======================================
Files 74 74
Lines 4650 4645 -5
======================================
- Hits 4070 4065 -5
Misses 580 580 |
This pull request is now in conflict... :( |
This pull request is now in conflict... :( |
* Removing unecessary early stopping calls * Update CHANGELOG.md Co-authored-by: Mateusz Pieniak <[email protected]> Co-authored-by: William Falcon <[email protected]>
Before submitting
What does this PR do?
Fixes #1751
PR review
The removed early stopping calls are conditioned in different cases.
validation_step
implemented.It's enough to call it once after the training because
self.early_stop_callback.on_epoch_end
can read required metrics fromtrainer.callback_metrics
.