SBIAX

SBIAX: Density-estimation simulation-based inference in JAX - Published in JOSS (2025)

https://github.com/homerjed/sbiax

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: arxiv.org, joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

generative-models jax normalizing-flows simulation-based-inference

Scientific Fields

Artificial Intelligence and Machine Learning Computer Science - 62% confidence
Last synced: 6 months ago · JSON representation

Repository

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

Basic Info
  • Host: GitHub
  • Owner: homerjed
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 19.2 MB
Statistics
  • Stars: 19
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 21
Topics
generative-models jax normalizing-flows simulation-based-inference
Created about 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License

README.md

sbiax

Fast, lightweight and parallel simulation-based inference.

DOI Project Status: Active – The project has reached a stable, usable state and is being actively developed. arXiv

Your image description

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

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


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: <!--(arXiv link) -->

bibtex @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}, }

bibtex @article{ Homer2025, doi = {10.21105/joss.07606}, url = {https://doi.org/10.21105/joss.07606}, year = {2025}, publisher = {The Open Journal}, volume = {10}, number = {105}, pages = {7606}, author = {Jed Homer and Oliver Friedrich}, title = {SBIAX: Density-estimation simulation-based inference in JAX}, journal = {Journal of Open Source Software} }

Owner

  • Name: Jed Homer
  • Login: homerjed
  • Kind: user
  • Location: München, Deutschland

JOSS Publication

SBIAX: Density-estimation simulation-based inference in JAX
Published
January 18, 2025
Volume 10, Issue 105, Page 7606
Authors
Jed Homer ORCID
University Observatory, Faculty for Physics, Ludwig-Maximilians-Universität München, Scheinerstrasse 1, München, Deustchland., Munich Center for Machine Learning.
Oliver Friedrich ORCID
University Observatory, Faculty for Physics, Ludwig-Maximilians-Universität München, Scheinerstrasse 1, München, Deustchland., Munich Center for Machine Learning., Excellence Cluster ORIGINS, Boltzmannstr. 2, 85748 Garching, Deutschland.
Editor
Mehmet Hakan Satman ORCID
Tags
Machine learning Generative models Bayesian Inference Simulation based inference

GitHub Events

Total
  • Create event: 50
  • Issues event: 16
  • Release event: 19
  • Watch event: 18
  • Delete event: 1
  • Issue comment event: 23
  • Push event: 164
  • Public event: 1
  • Pull request event: 15
  • Fork event: 2
Last Year
  • Create event: 50
  • Issues event: 16
  • Release event: 19
  • Watch event: 18
  • Delete event: 1
  • Issue comment event: 23
  • Push event: 164
  • Public event: 1
  • Pull request event: 15
  • Fork event: 2

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 151
  • Total Committers: 2
  • Avg Commits per committer: 75.5
  • Development Distribution Score (DDS): 0.033
Past Year
  • Commits: 151
  • Committers: 2
  • Avg Commits per committer: 75.5
  • Development Distribution Score (DDS): 0.033
Top Committers
Name Email Commits
homerjed j****r@g****m 146
Mehmet Hakan Satman m****n@g****m 5

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 9
  • Total pull requests: 15
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 13 hours
  • Total issue authors: 2
  • Total pull request authors: 3
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.2
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 9
  • Pull requests: 15
  • Average time to close issues: 2 days
  • Average time to close pull requests: about 13 hours
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.2
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • kazewong (5)
  • maja-jablonska (4)
Pull Request Authors
  • jbytecode (8)
  • maja-jablonska (5)
  • homerjed (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 87 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 23
  • Total maintainers: 1
pypi.org: sbiax

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

  • Documentation: https://sbiax.readthedocs.io/
  • License: MIT License Copyright (c) [2024] [Jed Homer] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.0.57
    published 9 months ago
  • Versions: 23
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 87 Last month
Rankings
Dependent packages count: 10.2%
Average: 33.7%
Dependent repos count: 57.3%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/publish.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
  • sigstore/gh-action-sigstore-python v2.1.1 composite
pyproject.toml pypi
  • beartype *
  • blackjax *
  • chainconsumer *
  • cloudpickle *
  • diffrax *
  • einops *
  • equinox *
  • flowjax *
  • jax ==0.4.33
  • matplotlib *
  • ml_collections *
  • numpy *
  • optax *
  • optuna *
  • scikit-learn *
  • tensorflow_probability *
  • tqdm *
.github/workflows/joss.yml actions
  • EndBug/add-and-commit v9 composite
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
tests/requirements.txt pypi
  • pytest * test