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

Bug in sparse fitter when weights are not binary #23

Merged
merged 5 commits into from
Feb 13, 2025

Conversation

tyler-a-cox
Copy link
Collaborator

This PR fixes a bug in the sparse_linear_fit_2D function when the input weights are not only ones and zeros. I've included a new test which tests that the fit matches well when random non-binary weights are added.

@tyler-a-cox tyler-a-cox requested a review from jsdillon February 13, 2025 20:52
Copy link
Member

@jsdillon jsdillon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK by me, assuming tests pass.

@tyler-a-cox tyler-a-cox force-pushed the fix_sparse_fitter_nonzero_wgts branch from a5015f6 to a8bde18 Compare February 13, 2025 20:57
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.01%. Comparing base (f165ec1) to head (9c8e63e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #23   +/-   ##
=======================================
  Coverage   99.00%   99.01%           
=======================================
  Files           4        4           
  Lines        1817     1833   +16     
=======================================
+ Hits         1799     1815   +16     
  Misses         18       18           
Flag Coverage Δ
unittests 99.01% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tyler-a-cox tyler-a-cox merged commit 1403da3 into main Feb 13, 2025
8 checks passed
@tyler-a-cox tyler-a-cox deleted the fix_sparse_fitter_nonzero_wgts branch February 13, 2025 20:59
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.

2 participants