Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.24 KB

File metadata and controls

49 lines (36 loc) · 1.24 KB

Reproducing results of the sbijax manuscript

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/activate

Install sbijax and all dependencies using:

pip install -r requirements.txt

Usage with Jupyter notebooks

For 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 --user

Then call

cd experimental_code
jupyter lab

This opens Jupyter on your web browser. You can now run any of the four notebooks.

Usage with Python files

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.py

Calling a Python script creates files in a folder called figs.