Skip to main content

Simulation-based inference.

Project description

sbi is a PyTorch package for simulation-based inference. Simulation-based inference is the process of finding the parameters of a simulator from observations. sbi takes a Bayesian approach and returns a full posterior distribution over the parameters, conditional on the observations.

sbi offers a simple interface for one-line posterior inference

from sbi inference import infer
# import your simulator, define your prior on the parameters
parameter_posterior = infer(simulator, prior, method='SNPE')

sbi is a community project. It is the PyTorch successor of delfi, and started life as a fork of Conor M. Durkan's lfi. Development is currently coordinated at the mackelab.

We would appreciate to hear how sbiis working for your simulation problems, and welcome also bug reports, pull requests and any other feedback at github.com/mackelab/sbi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbi-0.8.0.tar.gz (605.1 kB view hashes)

Uploaded Source

Built Distribution

sbi-0.8.0-py3-none-any.whl (107.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page