Skip to content

fix_mcmc_iid_for_npe - #1813

Merged
manuelgloeckler merged 1 commit into
mainfrom
fix_mcmc_iid
Mar 13, 2026
Merged

manuelgloeckler merged 1 commit into
mainfrom
fix_mcmc_iid

Conversation

@manuelgloeckler

Copy link
Copy Markdown
Contributor

Adding NPE iid revealed something that was done not explicitly in MCMCPosterior. By convention sample and log_prob will always assume x is either single OR IID. But MCMCPosterior relied on potential to default x_iid=True which is not the case for the direct_posterior_potential.

This was only captured by main CI after merging in #1810 (as its slow).

@manuelgloeckler
manuelgloeckler requested review from dgedon and janfb March 13, 2026 18:02
@codecov

codecov Bot commented Mar 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@0a70cdf). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sbi/inference/posteriors/mcmc_posterior.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1813   +/-   ##
=======================================
  Coverage        ?   87.78%           
=======================================
  Files           ?      140           
  Lines           ?    12726           
  Branches        ?        0           
=======================================
  Hits            ?    11172           
  Misses          ?     1554           
  Partials        ?        0           
Flag Coverage Δ
fast 82.72% <50.00%> (?)

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

Files with missing lines Coverage Δ
sbi/inference/posteriors/mcmc_posterior.py 84.15% <50.00%> (ø)

@manuelgloeckler
manuelgloeckler merged commit cfed0a1 into main Mar 13, 2026
9 checks passed
@janfb
janfb deleted the fix_mcmc_iid branch March 13, 2026 20:24
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