-
Notifications
You must be signed in to change notification settings - Fork 419
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
[bugfix] MetricCollection should return metrics with prefix on items(), keys() #209
Conversation
Hello @tchaton! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-05-03 20:05:29 UTC |
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #209 +/- ##
==========================================
+ Coverage 96.73% 96.76% +0.02%
==========================================
Files 184 184
Lines 5888 5930 +42
==========================================
+ Hits 5696 5738 +42
Misses 192 192
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks @tchaton I'm probably missing something here, but why not changing the clone method such that it adds prefix/postfix to the returned dictionary keys? |
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.
LGTM
* update pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* fix setup imports * pkg
…ing/metrics into metrics_collection
@tchaton , I agree that we should fix the checkpointing behavior, but my point is that it might be cleaner to just change the |
Hey @SkafteNicki. What are your thoughts ? Happy to let someone else change the MetricCollection to save the metrics with prefix and postfix directly. Best, |
@tchaton I am in favour of this change so the keys are consistent between |
Actually I now think this is fine - we can just flip the implementation later and just do the in-place modification in case of lgtm |
so pls make an issue for it for this milestone so we do not forget it... (and link it in this PR) |
…), keys() (#209) * update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update print * resolve flake8 * update * CI: update pre-commit (#207) * update pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> * fix setup imports (#208) * fix setup imports * pkg * chlog * format * update * update * check type * update on comments * update on comments Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nicki Skafte <skaftenicki@gmail.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com> Co-authored-by: jirka <jirka.borovec@seznam.cz> (cherry picked from commit 67ce961)
Before submitting
What does this PR do?
This PR makes sure
items() / keys()
properly returns the right keys withprefix / postfix
.Fixes #Lightning-AI/pytorch-lightning#7235.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃