Skip to content

small fixes to score methods - #1404

Merged
janfb merged 5 commits into
mainfrom
fix-score-rebuild-flow
Feb 25, 2025
Merged

janfb merged 5 commits into
mainfrom
fix-score-rebuild-flow

Conversation

@janfb

@janfb janfb commented Feb 21, 2025

Copy link
Copy Markdown
Contributor
  • no need to pass x to sample_via_ode because it is set above.
  • set rebuild_flow to False by default and changed the docstring, please double check.

@janfb janfb added the bug Something isn't working label Feb 21, 2025
@janfb
janfb requested a review from gmoss13 February 21, 2025 13:59
@janfb janfb self-assigned this Feb 21, 2025

@gmoss13 gmoss13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot @janfb! I do think this looks a lot better. Left a few comments/questions

Comment thread tests/linearGaussian_npse_test.py Resolved
Comment thread tests/linearGaussian_npse_test.py Resolved
@codecov

codecov Bot commented Feb 21, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.08%. Comparing base (18f92b1) to head (d156add).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
sbi/inference/posteriors/score_posterior.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1404       +/-   ##
===========================================
- Coverage   89.31%   78.08%   -11.23%     
===========================================
  Files         119      119               
  Lines        8779     8886      +107     
===========================================
- Hits         7841     6939      -902     
- Misses        938     1947     +1009     
Flag Coverage Δ
unittests 78.08% <87.50%> (-11.23%) ⬇️

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

Files with missing lines Coverage Δ
sbi/diagnostics/sbc.py 92.95% <100.00%> (-2.82%) ⬇️
sbi/inference/potentials/score_based_potential.py 81.91% <100.00%> (-15.06%) ⬇️
sbi/utils/sbiutils.py 78.11% <ø> (-8.68%) ⬇️
sbi/inference/posteriors/score_posterior.py 81.00% <50.00%> (-16.02%) ⬇️

... and 34 files with indirect coverage changes

@janfb janfb changed the title change rebuild_flow default to False small fixes to score methods Feb 23, 2025
@janfb janfb mentioned this pull request Feb 25, 2025
6 tasks done
@janfb
janfb force-pushed the fix-score-rebuild-flow branch from 8a1d5a9 to d156add Compare February 25, 2025 13:08

@gmoss13 gmoss13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great, thanks a lot! Happy to merge this once tests pass!

Comment thread sbi/diagnostics/sbc.py Resolved
Comment thread tests/save_and_load_test.py Resolved
@janfb
janfb merged commit dd4aef7 into main Feb 25, 2025
@janfb
janfb deleted the fix-score-rebuild-flow branch February 25, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants