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

81 add variational inference posteriors #92

Merged
merged 7 commits into from
Dec 12, 2023

Conversation

maho3
Copy link
Owner

@maho3 maho3 commented Nov 23, 2023

Adds a VISampler to samplers.py, allowing for variational inference sampling with the sbi backend.

On a Macbook, the VISampler is only marginally faster than Pyro MCMC for the toy example (9 min vs 10 min for PosteriorCoverage). However, it is expected to be faster for higher-dimensional posteriors, especially when using GPU.

@maho3 maho3 linked an issue Nov 23, 2023 that may be closed by this pull request
@maho3 maho3 mentioned this pull request Nov 23, 2023
19 tasks
@DeaglanBartlett
Copy link
Collaborator

Nice work! To make checking this PR easier, please can you add an example to the unit tests which uses the VI sampler?

@maho3 maho3 merged commit 672b4df into main Dec 12, 2023
@maho3 maho3 deleted the 81-add-variational-inference-posteriors branch December 12, 2023 15:18
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.

Add variational inference posteriors
2 participants