-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: contribution operator meets nan value #18782
Conversation
Codecov Report
@@ Coverage Diff @@
## master #18782 +/- ##
==========================================
- Coverage 66.32% 66.15% -0.17%
==========================================
Files 1620 1620
Lines 63087 63092 +5
Branches 6372 6372
==========================================
- Hits 41840 41738 -102
- Misses 19590 19697 +107
Partials 1657 1657
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 with a non-blocking comment to think about (as this PR fixes a clear bug I consider my comment mostly a nit). Also, an unrelated observation: I wonder if we should rename "Total" to something that describes more clearly that it's actually the "row" or "x-axis" that we're calculating the contribution for, not the "total", which I feel would be calculated in relation to the sum of the matrix.
SUMMARY
NaN
value in contribution operator can't calculate.nan
value in contribution.closes: #18774
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
After
Before
TESTING INSTRUCTIONS
ds
in x-axissum(num_boys)
in metricsname
in group bytotal
in contribution modeADDITIONAL INFORMATION