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.
Contributing
Want to add something? See CONTRIBUTING.md.
Citation
If you found this library to be useful in academic work, please cite:
@misc{homer2024simulationbasedinferencedodelsonschneidereffect,
title={Simulation-based inference has its own Dodelson-Schneider effect (but it knows that it does)},
author={Jed Homer and Oliver Friedrich and Daniel Gruen},
year={2024},
eprint={2412.02311},
archivePrefix={arXiv},
primaryClass={astro-ph.CO},
url={https://arxiv.org/abs/2412.02311},
}
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sbiax-0.0.49.tar.gz.
File metadata
- Download URL: sbiax-0.0.49.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b72c8ece55f6ff371e62a839aef8702207e0915498171d2ef882a2052ea3587d
|
|
| MD5 |
6049fd4b6d742d2866deb8d8e95af998
|
|
| BLAKE2b-256 |
c184b638198a81e0821cfbbe9ec54a8e8e4815c2c32f8c915aeb1282d1b030b1
|
Provenance
The following attestation bundles were made for sbiax-0.0.49.tar.gz:
Publisher:
publish.yml on homerjed/sbiax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sbiax-0.0.49.tar.gz -
Subject digest:
b72c8ece55f6ff371e62a839aef8702207e0915498171d2ef882a2052ea3587d - Sigstore transparency entry: 162520613
- Sigstore integration time:
-
Permalink:
homerjed/sbiax@3fcb6a5d43e6ecb5af0e00c93b7dd48793143870 -
Branch / Tag:
refs/tags/0.0.49 - Owner: https://github.com/homerjed
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3fcb6a5d43e6ecb5af0e00c93b7dd48793143870 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sbiax-0.0.49-py3-none-any.whl.
File metadata
- Download URL: sbiax-0.0.49-py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
644580df7202a47a7f71de68bf4a9e1af5835045ac0bb48030e05d715b95807f
|
|
| MD5 |
5316c9f692ebd84e8c63c03e3e2fb4a4
|
|
| BLAKE2b-256 |
786af670b4450dc6fdde5031a17c71715763cf5534b52f87af34b98c63827f00
|
Provenance
The following attestation bundles were made for sbiax-0.0.49-py3-none-any.whl:
Publisher:
publish.yml on homerjed/sbiax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sbiax-0.0.49-py3-none-any.whl -
Subject digest:
644580df7202a47a7f71de68bf4a9e1af5835045ac0bb48030e05d715b95807f - Sigstore transparency entry: 162520644
- Sigstore integration time:
-
Permalink:
homerjed/sbiax@3fcb6a5d43e6ecb5af0e00c93b7dd48793143870 -
Branch / Tag:
refs/tags/0.0.49 - Owner: https://github.com/homerjed
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3fcb6a5d43e6ecb5af0e00c93b7dd48793143870 -
Trigger Event:
push
-
Statement type: