In order to reproduce the results of the paper, please follow the steps below.
Install a new Python 3.11 virtual environment and activate it using:
python3.11 -m venv venv
source venv/bin/activateInstall sbijax and all dependencies using:
pip install -r requirements.txtFor each section that contains code and figures, we provide a separate Jupyter notebook. All notebooks contain the results and figures shown in the main manuscript.
To run all experiments using Jupyter, first install a Jupyter kernel:
python -m ipykernel install --name sbi-dev --userThen call
cd experimental_code
jupyter labThis opens Jupyter on your web browser. You can now run any of the four notebooks.
For each section that contains code and figures, we also provide separate Python files which are exported from the notebooks.
To execute each and reproduce the results of a section, call:
cd experimental_code/scripts
python chp3-the_sbi_package.py
python chp4-examples.py
python chp5-real_data_example.py
python chpx-appendix.pyCalling a Python script creates files in a folder called figs.