Skip to content

Clarify pbar annotation in sample_batched for DirectPosterior - #1493

Merged
janfb merged 1 commit into
sbi-dev:mainfrom
StefanWahl:dev_display_correct_samples_sample_batched
Mar 19, 2025
Merged

janfb merged 1 commit into
sbi-dev:mainfrom
StefanWahl:dev_display_correct_samples_sample_batched

Conversation

@StefanWahl

Copy link
Copy Markdown
Collaborator

This is a fix for the bug described in #1388

sample_batch of DirectPosterior uses accept_reject_sample to generate posterior samples for a batch of observations. Changed the description of the pbar in accept_reject_sample to clarify how many posterior samples for how many observations are generated.

@codecov

codecov Bot commented Mar 19, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.03%. Comparing base (c5c511c) to head (8a52e60).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1493       +/-   ##
===========================================
- Coverage   89.69%   79.03%   -10.67%     
===========================================
  Files         121      121               
  Lines        9347     9357       +10     
===========================================
- Hits         8384     7395      -989     
- Misses        963     1962      +999     
Flag Coverage Δ
unittests 79.03% <100.00%> (-10.67%) ⬇️

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

Files with missing lines Coverage Δ
sbi/samplers/rejection/rejection.py 87.75% <100.00%> (ø)

... and 37 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@janfb janfb 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.

Perfect. thanks for fixing this! 👏

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