Skip to content
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

🐞use fractions.Fraction to avoid rounding error in probabilities sum #26

Merged
merged 3 commits into from
May 4, 2024
Merged

Conversation

acarril
Copy link
Contributor

@acarril acarril commented Oct 14, 2023

fix #25

@acarril
Copy link
Contributor Author

acarril commented Oct 16, 2023 via email

@manmartgarc
Copy link
Owner

Would you like to keep working on this? I can't merge as it is because of the failing checks.

Copy link

codecov bot commented Apr 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.04%. Comparing base (a8c6e14) to head (b7c753b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
+ Coverage   93.90%   94.04%   +0.14%     
==========================================
  Files           3        3              
  Lines          82       84       +2     
==========================================
+ Hits           77       79       +2     
  Misses          5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

manmartgarc
manmartgarc previously approved these changes Apr 28, 2024
@manmartgarc
Copy link
Owner

@acarril better late than never, sorry for the delay - feel free to add your review :)

PS: I think we should probably add a check for the relative size of treatments and data; I shouldn't be able to pass more treatments than rows!

@acarril
Copy link
Contributor Author

acarril commented May 3, 2024

this looks good to me! thanks for implementing it.

regarding the check, it sounds about right, but probably a separate issue?

@manmartgarc manmartgarc merged commit 11e6282 into manmartgarc:main May 4, 2024
6 checks passed
@acarril acarril deleted the probs_sum branch May 4, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rounding error in assignment probabilities
2 participants