This repository presents the replication material for the JSS submission titled
BayesFlow 2: Multi-Backend Amortized Bayesian Inference in Python
The code was tested using BayesFlow v2.0.10 (f9a7f2f) with the JAX backend.
The simplest way is to install all dependencies from the pyproject.toml using uv:
uv venv
uv syncYou can run the full case study using one of the following:
uv run case-study.pypython case-study.pyFigures are generated in the figures directory.
A log file of all output is further saved as 'case-study.out'.
Note that despite all efforts to ensure reproducibility, small differences in the results may occur due to differences in software versions and hardware.
If you find this work or the corresponding paper useful, please consider citing the following:
@article{kuhmichel2026bayesflow,
title={{BayesFlow} 2: Multi-backend amortized {B}ayesian inference in Python},
author={Kühmichel, Lars and Huang, Jerry M and Pratz, Valentin and Arruda, Jonas and Olischläger, Hans and Habermann, Daniel and Kucharsky, Simon and Elsemüller, Lasse and Mishra, Aayush and Bracher, Niels and Jedhoff, Svenja and Schmitt, Marvin and Bürkner, Paul-Christian and Radev, Stefan T},
journal={arXiv preprint arXiv:2602.07098},
year={2026}
}