-
Notifications
You must be signed in to change notification settings - Fork 24
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
[WIP] Fix card bin clipping #331
base: master
Are you sure you want to change the base?
Conversation
@Andrew42 I am wondering if you intended for the changes on this branch (which were implemented I think to avoid some t2w crash) to be eventually merged into the master? If I'm remembering correctly, I think we agreed not to merge it right away (since the way the solution was implemented would lead to very tiny numerical differences in the histogram contents) but I am wondering if you think it would be useful to merge this after TOP-22-006 is out the door (in which case we should leave the PR open), or if you intended these changes to just be temporary workaround (in which case we could close the PR). |
@Andrew42 just wondering if you've had a chance to think about this. |
After discussing this with @kmohrman, I think the changes here are useful to have as they dealt with the edge case where all bins in category/histogram were zero, which makes The core of the changes made it so that when we crop negative bins, we don't crop them to zero, but rather to some small non-negative value. This is why these changes impacted the final yields, but by a very small/inconsequential amount even for the cases where you weren't get the It also added a number of print statements to warn/check when the clipping is being done to bins with a 'large' negative yield, which is probably something we want the user to be notified of. |
Sounds good. I think we should go ahead and merge this into the We should also understand why the CI is failing. |
…-card-bin-clipping
Codecov Report
@@ Coverage Diff @@
## master #331 +/- ##
==========================================
+ Coverage 30.27% 33.99% +3.72%
==========================================
Files 47 38 -9
Lines 7603 6459 -1144
==========================================
- Hits 2302 2196 -106
+ Misses 5301 4263 -1038
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@Andrew42 do you understand why the CI is failing? It seems to be on the comparison against the ref data card. I would have thought that any differences introduced by the changes in this branch would be smaller than the threshold used in the comparison ( 0.5e-5). |
@Andrew42 what are you intentions with this PR? |
Opening a PR for this branch created by @Andrew42 a few weeks ago. The main purpose of the PR is to enable easier comparison against master (not sure if we will eventually want to merge this or not).