Skip to main content

Fast, parallel and lightweight simulation-based inference in JAX.

Project description

sbiax

Fast, lightweight and parallel simulation-based inference.

Your image description

sbiax is a lightweight library for simulation-based inference (SBI) with a fixed grid of simulations.

[!WARNING] :building_construction: Note this repository is under construction, expect changes. :building_construction:


Design

In a typical inference problem the data likelihood is unknown. Using density-estimation SBI, we can proceed by

  • simulating a set of data and model parameters ${(\boldsymbol{\xi}, \boldsymbol{\pi})_0, ..., (\boldsymbol{\xi}, \boldsymbol{\pi})_N}$,
  • obtaining a measurement $\hat{\boldsymbol{\xi}}$,
  • compressing the simulations and the measurements - usually with a neural network or linear compression - to a set of summaries ${(\boldsymbol{x}, \boldsymbol{\pi})_0, ..., (\boldsymbol{x}, \boldsymbol{\pi})_N}$ and $\hat{\boldsymbol{x}}$,
  • fitting an ensemble of normalising flow or similar density estimation algorithms (e.g. a Gaussian mixture model),
  • the optional optimisation of the parameters for the architecture and fitting hyperparameters of the algorithms,
  • sampling the ensemble posterior (using an MCMC sampler if the likelihood is fit directly) conditioned on the datavector to obtain parameter constraints on the parameters of a physical model, $\boldsymbol{\pi}$.

sbiax is a code for implementing each of these steps.


Usage

Install via

pip install sbiax

and have a look at examples.

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

sbiax-0.0.12.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

sbiax-0.0.12-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file sbiax-0.0.12.tar.gz.

File metadata

  • Download URL: sbiax-0.0.12.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sbiax-0.0.12.tar.gz
Algorithm Hash digest
SHA256 b617919eddb4d15360fca4dbeb3907a7491d7ccec8d242cb51d2f6b93ef39143
MD5 faa12b1389931b27d6af2cf0622bafa8
BLAKE2b-256 05f4a62dde34e6444fc2c12436ec1dd75c68e17617d7fb3cbdd582a8df4abc56

See more details on using hashes here.

File details

Details for the file sbiax-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: sbiax-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sbiax-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b8bdd5aae6caf254ca83fe04a7edc8e5a5d4786ee0761c9c9c2f51d425b067b7
MD5 5d6721b0a4c81e41934aa2940dd04bd0
BLAKE2b-256 b7f2a578e4a2109ac88bcf09b4796a1a6e6c7d33742da77f91b895c1b7421358

See more details on using hashes here.

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