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

perform sir in untransformed space to fix #634. #646

Merged
merged 1 commit into from
Feb 14, 2022
Merged

perform sir in untransformed space to fix #634. #646

merged 1 commit into from
Feb 14, 2022

Conversation

janfb
Copy link
Contributor

@janfb janfb commented Feb 11, 2022

fixing #634

not sure why exactly this failed only for the MultipleIndependent prior. Isn't the sir supposed to use the transformed potential in any case, i.e., isn't this a general bug? @michaeldeistler

Copy link
Contributor

@michaeldeistler michaeldeistler left a comment

Choose a reason for hiding this comment

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

I think you pushed the wrong branch :D

CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Contributor

@michaeldeistler michaeldeistler 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 catching this and providing a fix!

sbi/inference/posteriors/mcmc_posterior.py Outdated Show resolved Hide resolved
Copy link
Contributor

@michaeldeistler michaeldeistler left a comment

Choose a reason for hiding this comment

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

Looks great now, thanks!

@janfb janfb changed the title pass transformed potential for sir to fix #634. perform sir in untransformed space to fix #634. Feb 11, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #646 (f44fe24) into main (b8fa685) will increase coverage by 0.26%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #646      +/-   ##
==========================================
+ Coverage   74.55%   74.81%   +0.26%     
==========================================
  Files          75       75              
  Lines        5668     5667       -1     
==========================================
+ Hits         4226     4240      +14     
+ Misses       1442     1427      -15     
Flag Coverage Δ
unittests 74.81% <100.00%> (+0.26%) ⬆️

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

Impacted Files Coverage Δ
sbi/samplers/mcmc/init_strategy.py 78.78% <100.00%> (-0.63%) ⬇️
sbi/analysis/sbc.py 78.66% <0.00%> (+19.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8fa685...f44fe24. Read the comment docs.

@janfb janfb merged commit 78cc11e into main Feb 14, 2022
@janfb janfb deleted the fix-634 branch February 14, 2022 06:58
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.

SNLE + multiple independent prior + MCMC with num_workers > 1 throws error
3 participants