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

Move .map() and .sample_conditional() to sbi.analysis? #574

Closed
michaeldeistler opened this issue Jan 5, 2022 · 0 comments · Fixed by #573
Closed

Move .map() and .sample_conditional() to sbi.analysis? #574

michaeldeistler opened this issue Jan 5, 2022 · 0 comments · Fixed by #573
Labels
API changes This impacts the public API of the project (e.g. inference class).

Comments

@michaeldeistler
Copy link
Contributor

michaeldeistler commented Jan 5, 2022

Current API:

map_ = posterior.map()
samples = posterior.sample_conditional(...)

Suggested change:

from sbi.analysis import optimize, sample_conditional

map_ = optimize(posterior)
samples = sample_conditional(posterior, ...)

This would have the benefit of having minimal posterior classes which would make things easier to maintain.

@jan-matthis jan-matthis linked a pull request Jan 10, 2022 that will close this issue
@jan-matthis jan-matthis added the API changes This impacts the public API of the project (e.g. inference class). label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API changes This impacts the public API of the project (e.g. inference class).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants