We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ideally, before doing this, we should swap out the flows such that the likelihood_estimator has a nicer API.
likelihood_estimator
from sbi.inference import SNLE from sbi.utils import likelihood_nn from sbi.inference import likelihood_estimator_based_potential, MCMCPosterior prior = BoxUniform(-torch.ones((2,)), torch.ones((2,))) theta = prior.sample((1000,)) x = theta + torch.randn((1000, num_dim)) x_o = torch.randn((1, num_dim)) likelihood_estimator = likelihood_nn("maf") # ... train however you want ... potential_fn, parameter_transform = likelihood_estimator_based_potential( likelihood_estimator, prior, x_o ) posterior = MCMCPosterior( potential_fn, proposal=prior, theta_transform=parameter_transform )
The text was updated successfully, but these errors were encountered:
Duplicate of #766
Sorry, something went wrong.
No branches or pull requests
Ideally, before doing this, we should swap out the flows such that the
likelihood_estimator
has a nicer API.The text was updated successfully, but these errors were encountered: