-
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
Convert progress bar metrics to float #5692
Conversation
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5692 +/- ##
=================================================
- Coverage 88% 44% -44%
=================================================
Files 181 181
Lines 12964 12796 -168
=================================================
- Hits 11462 5632 -5830
- Misses 1502 7164 +5662 |
@carmocca is it still WIP or ready to go? :] |
So I planned to include a larger refactor here. I think i'll commit the one-line fix to master and work on the refactor here. edit: Nevermind, |
I would rather have multiple smaller refactors, it is easier to review :] |
327531a
to
48d1b38
Compare
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.
Just one request: could we move the test to the logging tests? Because the conversion doesn't happen in the progress bar therefore I propose to move this test outside the progress bar unit tests.
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.
pls see #5692 (review)
I disagree. The purpose of the test is to check that the progress bar correctly displays the number as a float, not a tensor. The fact that the changed code is in the logger connector is independent to the problem this PR is solving. If the logger connector was completely replaced by a different abstraction, I still want to make sure the progress bar does not change. Tell me if you still want me to change it. |
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.
I am not convinced with your argument but it's ok I don't want to block. If we change our mind we can move the test later.
77d4dd9
to
18eec97
Compare
What does this PR do?
Fixes #5481
### TODO:- Separate train/val/test metrics-callback_metrics
should copy the data as is, not as a reference fromprogress_bar_metrics
. This way, eachMetricHolder
is free to make their own conversions without affecting other parts.edit: leaving refactor out of this PR
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list: