-
Notifications
You must be signed in to change notification settings - Fork 363
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
[Feature] Support EarlyStoppingHook #739
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #739 +/- ##
=======================================
Coverage ? 76.71%
=======================================
Files ? 139
Lines ? 10921
Branches ? 2184
=======================================
Hits ? 8378
Misses ? 2186
Partials ? 357
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
9867724
to
67dc666
Compare
Hi @HAOCHENYE, I have a little question. Is it intended (the developers should consider) or unintended behavior? |
Usually, if the user does not specify the experiment name, MMEngine has multiple global variances such as As for the unit tests will often raise an error about the duplicated experiment name, it is caused by the irregularity of the current unit testing, and we plan to refactor the unit tests, and provide a more general function to build Runner in unit tests. |
One more question! I am thinking about which experiments we should consider for no improvement. Current implementation retains top scores ignoring the recent inferior results. Which one will be better? |
Additional notes: We could also borrow the implementation in Back to the topic, it could make more sense to me to directly compare the latest metric with the previous best Nth metrics and finally update the Nth metrics with the latest one, rather than first update the Nth metrics, and then compare them 🤣. what do you think about it? |
I think your provided link looks neat. I'll rewrite the code especially for stopping logic and |
Hi @nijkah , thanks for your contribution again 👍. |
Co-authored-by: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Motivation
Closes #356
Modification
Added a new variable
stop_training
inEpochBasedTrainLoop
andIterBasedTrainLoop
.Edited
run
method as**
EarlyStoppingHook
itself does not save the best checkpoint. Should we support it?I referred to some logics from