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

duplication of 'large number' in warning #1391

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

turnmanh
Copy link
Contributor

@turnmanh turnmanh commented Feb 19, 2025

What does this implement/fix? Explain your changes

The warning on the number of chains for batched sampling for a MCMC Posterior hat larger number twice in the string.

Also, despite reducing the number of chains, reducing the batch size might be a suitable solution as well.

Does this close any currently open issues?

No.

Any relevant code examples, logs, error output, etc?

No.

Any other comments?

No.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.

  • I have read and understood the contribution
    guidelines
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have reported how long the new tests run and potentially marked them
    with pytest.mark.slow.
  • New and existing unit tests pass locally with my changes
  • I performed linting and formatting as described in the contribution
    guidelines
  • There are no conflicts with the main branch

For the reviewer:

  • I have reviewed every file
  • All comments have been addressed.

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.48%. Comparing base (18f92b1) to head (9d7f5b3).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1391       +/-   ##
===========================================
- Coverage   89.31%   78.48%   -10.84%     
===========================================
  Files         119      119               
  Lines        8779     8779               
===========================================
- Hits         7841     6890      -951     
- Misses        938     1889      +951     
Flag Coverage Δ
unittests 78.48% <ø> (-10.84%) ⬇️

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 86.14% <ø> (-0.75%) ⬇️

... and 32 files with indirect coverage changes

Copy link
Contributor

@janfb janfb left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @turnmanh !

Tests and type checks are currently failing due to a change / bug in a recent pymc release, see #1390

Let's wait til that one is merged.

@janfb janfb merged commit aa05585 into sbi-dev:main Feb 20, 2025
4 of 6 checks passed
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