Fast, parallel and lightweight simulation-based inference in JAX.
Project description
sbiax
Fast, lightweight and parallel simulation-based inference.
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
Release history Release notifications | RSS feed
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.6.tar.gz
(2.6 MB
view details)
Built Distribution
sbiax-0.0.6-py3-none-any.whl
(2.6 MB
view details)
File details
Details for the file sbiax-0.0.6.tar.gz
.
File metadata
- Download URL: sbiax-0.0.6.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f8713013e9d33d3e0e22f4d11e8051a8db52771fe098362bcb04e8cb60e4482 |
|
MD5 | 1c3dc9aa16770e0d0286d1f3ef37be82 |
|
BLAKE2b-256 | df77d3884d07c30ee6bf48c83f0d6f6662d0ecd578aa243bb5f12f4d1a2ba6b6 |
File details
Details for the file sbiax-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: sbiax-0.0.6-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ea29bb964b2ae41d7b5a0a5ecd1523c695fd5f53e38a4e5b46e11f34c6d99cc |
|
MD5 | 3382cf62c3b05c89e62852f0d63ff7e4 |
|
BLAKE2b-256 | 8fafe380c3071300cbf7aef5e3ebff7e08cf7af838cb450db3fb7cecef5962f7 |