Skip to content

Commit 01e6588

Browse files
Merge pull request #143 from stefanradev93/Development
Bump up to Series 1.1.5 update
2 parents f5f7a6a + 6508273 commit 01e6588

27 files changed

+312
-7972
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml
22
name: docs
33

4-
# execute this workflow automatically when a we push to master
4+
# execute this workflow automatically when we push to master
55
on:
66
push:
77
branches:
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-python@v4
2929
with:
3030
python-version: 3.11
31-
cache: 'pip'
31+
cache: "pip"
3232

3333
- name: Install dependencies
3434
run: |

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
13-
- run: python3 -m pip install --upgrade build && python3 -m build
13+
- run: python3 -m pip install -U build && python3 -m build
1414
- name: Publish package
1515
uses: pypa/gh-action-pypi-publish@release/v1
1616
with:

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
pull_request:
55
push:
6-
branches:
6+
branches:
77
- master
88
- Development
99

@@ -14,17 +14,18 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
python-version: ['3.9']
17+
python-version: ["3.10", "3.11"]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
python -m pip install --upgrade pip
28-
pip install tox tox-gh-actions
27+
python -m ensurepip
28+
python -m pip install -U pip setuptools wheel
29+
python -m pip install tox tox-gh-actions
2930
- name: Test with tox
3031
run: tox

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,10 @@ General Improvements:
8383
performance.
8484
2. Deprecate name ``SequentialNetwork`` and use ``SequenceNetwork`` instead to avoid confusion with ``tf.keras.Sequential``.
8585
3. Change default to ``use_layer_norm=False`` of ``SetTransformer`` due to superior performance on relevant exchangeable models.
86+
87+
88+
1.1.5 Series
89+
----------
90+
1. Fix bug failing to propagate global context variables for model comparison.
91+
2. Major revamp of tutorials.
92+
3. Update dependencies and continuous integration.

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Full Installation Instructions
44
Requirements
55
------------
66

7-
This package requires Python 3.9 or later.
7+
This package requires Python 3.10 or later.
88
A simple installation is possible via `Miniconda <https://docs.conda.io/en/latest/miniconda.html>`_,
99
e.g. (on Linux)
1010

README.md

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For starters, check out some of our walk-through notebooks:
2121

2222
## Documentation \& Help
2323

24-
The project documentation is available at <https://bayesflow.org>. Please use the [BayesFlow Forums](https://discuss.bayesflow.org/) for any BayesFlow-related questions and discussions, and [GitHub Issues](https://github.com/stefanradev93/BayesFlow/issues) for bug reports and feature requests.
24+
The project documentation is available at <https://bayesflow.org>. Please use the [BayesFlow Forums](https://discuss.bayesflow.org/) for any BayesFlow-related questions and discussions, and [GitHub Issues](https://github.com/stefanradev93/BayesFlow/issues) for bug reports and feature requests.
2525

2626
## Installation
2727

@@ -73,7 +73,7 @@ def prior(D=2, mu=0., sigma=1.0):
7373
Then, we connect the `prior` with the `simulator` using a `GenerativeModel` wrapper:
7474

7575
```python
76-
generative_model = bf.simulation.GenerativeModel(prior, simulator)
76+
generative_model = bf.simulation.GenerativeModel(prior, simulator, simulator_is_batched=False)
7777
```
7878

7979
Next, we create our BayesFlow setup consisting of a summary and an inference network:
@@ -119,7 +119,7 @@ well-calibrated inference algorithms as indicated by the shaded gray areas.
119119
Accordingly, our neural approximator seems to have converged to the intended target.
120120

121121
As you can see, amortized inference on new (real or simulated) data is easy and fast.
122-
We can obtain further 5000 posterior draws per simulated data set and quickly inspect
122+
We can obtain further 5000 posterior draws per simulated data set and quickly inspect
123123
how well the model can recover its parameters across the entire *prior predictive distribution*.
124124

125125

@@ -149,7 +149,7 @@ BayesFlow: Learning complex stochastic models with invertible neural networks.
149149
<em>IEEE Transactions on Neural Networks and Learning Systems, 33(4)</em>, 1452-1466.
150150

151151
- Radev, S. T., Graw, F., Chen, S., Mutters, N. T., Eichel, V. M., Bärnighausen, T., & Köthe, U. (2021).
152-
OutbreakFlow: Model-based Bayesian inference of disease outbreak dynamics with invertible neural networks and its application to the COVID-19 pandemics in Germany. <em>PLoS computational biology, 17(10)</em>, e1009472.
152+
OutbreakFlow: Model-based Bayesian inference of disease outbreak dynamics with invertible neural networks and its application to the COVID-19 pandemics in Germany. <em>PLoS Computational Biology, 17(10)</em>, e1009472.
153153

154154
- Bieringer, S., Butter, A., Heimel, T., Höche, S., Köthe, U., Plehn, T., & Radev, S. T. (2021).
155155
Measuring QCD splittings with invertible networks. <em>SciPost Physics, 10(6)</em>, 126.
@@ -294,50 +294,52 @@ JANA: Jointly amortized neural approximation of complex Bayesian models.
294294
([arXiv](https://arxiv.org/abs/2302.09125))([PMLR](https://proceedings.mlr.press/v216/radev23a.html))
295295

296296
## Support
297-
This work is supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy -– EXC-2181 - 390900948 (the Heidelberg Cluster of Excellence STRUCTURES) and -- EXC-2075 - 390740016 (the Stuttgart Cluster of Excellence SimTech), the Informatics for Life initiative funded by the Klaus Tschira Foundation, and Google Cloud through the Academic Research Grants program.
297+
298+
This project is currently managed by researchers from Rensselaer Polytechnic Institute, TU Dortmund University, and Heidelberg University. It is partially funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation, Project 528702768). The project is further supported by Germany's Excellence Strategy -- EXC-2075 - 390740016 (Stuttgart Cluster of Excellence SimTech) and EXC-2181 - 390900948 (Heidelberg Cluster of Excellence STRUCTURES), as well as the Informatics for Life initiative funded by the Klaus Tschira Foundation.
298299

299300
## Citing BayesFlow
300301

301302
You can cite BayesFlow along the lines of:
302303

303-
- We approximated the posterior with neural posterior estimation and learned summary statistics (NPE; Radev et al., 2020), as implemented in the BayesFlow software for amortized Bayesian workflows (Radev et al., 2023b).
304+
- We approximated the posterior with neural posterior estimation and learned summary statistics (NPE; Radev et al., 2020), as implemented in the BayesFlow software for amortized Bayesian workflows (Radev et al., 2023a).
304305
- We approximated the likelihood with neural likelihood estimation (NLE; Papamakarios et al., 2019) without hand-cafted summary statistics, as implemented in the BayesFlow software for amortized Bayesian workflows (Radev et al., 2023b).
305306
- We performed simultaneous posterior and likelihood estimation with jointly amortized neural approximation (JANA; Radev et al., 2023a), as implemented in the BayesFlow software for amortized Bayesian workflows (Radev et al., 2023b).
306307

307-
1. Radev, S. T., Schmitt, M., Schumacher, L., Elsemüller, L., Pratz, V., Schälte, Y., Köthe, U., & Bürkner, P.-C. (2023). BayesFlow: Amortized Bayesian workflows with neural networks. *arXiv:2306.16015*. ([arXiv](https://arxiv.org/abs/2306.16015))
308+
1. Radev, S. T., Schmitt, M., Schumacher, L., Elsemüller, L., Pratz, V., Schälte, Y., Köthe, U., & Bürkner, P.-C. (2023a). BayesFlow: Amortized Bayesian workflows with neural networks. *The Journal of Open Source Software, 8(89)*, 5702.([arXiv](https://arxiv.org/abs/2306.16015))([JOSS](https://joss.theoj.org/papers/10.21105/joss.05702))
308309
2. Radev, S. T., Mertens, U. K., Voss, A., Ardizzone, L., Köthe, U. (2020). BayesFlow: Learning complex stochastic models with invertible neural networks. *IEEE Transactions on Neural Networks and Learning Systems, 33(4)*, 1452-1466. ([arXiv](https://arxiv.org/abs/2003.06281))([IEEE TNNLS](https://ieeexplore.ieee.org/document/9298920))
309-
3. Radev, S. T., Schmitt, M., Pratz, V., Picchini, U., Köthe, U., & Bürkner, P.-C. (2023). JANA: Jointly amortized neural approximation of complex Bayesian models. *Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence, 216*, 1695-1706. ([arXiv](https://arxiv.org/abs/2302.09125))([PMLR](https://proceedings.mlr.press/v216/radev23a.html))
310+
3. Radev, S. T., Schmitt, M., Pratz, V., Picchini, U., Köthe, U., & Bürkner, P.-C. (2023b). JANA: Jointly amortized neural approximation of complex Bayesian models. *Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence, 216*, 1695-1706. ([arXiv](https://arxiv.org/abs/2302.09125))([PMLR](https://proceedings.mlr.press/v216/radev23a.html))
310311

311312
**BibTeX:**
312313

313314
```
314-
@misc{radev2023bayesflow,
315-
title = {{BayesFlow}: Amortized Bayesian workflows with neural networks},
316-
author = {Stefan T Radev and Marvin Schmitt and Lukas Schumacher and Lasse Elsem\"{u}ller and Valentin Pratz and Yannik Sch\"{a}lte and Ullrich K\"{o}the and Paul-Christian B\"{u}rkner},
317-
year = {2023},
318-
publisher= {arXiv},
319-
url={https://arxiv.org/abs/2306.16015}
315+
@article{bayesflow_2023_software,
316+
title = {{BayesFlow}: Amortized {B}ayesian workflows with neural networks},
317+
author = {Radev, Stefan T. and Schmitt, Marvin and Schumacher, Lukas and Elsemüller, Lasse and Pratz, Valentin and Schälte, Yannik and Köthe, Ullrich and Bürkner, Paul-Christian},
318+
journal = {Journal of Open Source Software},
319+
volume = {8},
320+
number = {89},
321+
pages = {5702},
322+
year = {2023}
320323
}
321324
322-
@article{radev2020bayesflow,
323-
title={{BayesFlow}: Learning complex stochastic models with invertible neural networks},
324-
author={Radev, Stefan T. and Mertens, Ulf K. and Voss, Andreas and Ardizzone, Lynton and K{\"o}the, Ullrich},
325-
journal={IEEE transactions on neural networks and learning systems},
326-
volume={33},
327-
number={4},
328-
pages={1452--1466},
329-
year={2020},
330-
publisher={IEEE}
325+
@article{bayesflow_2020_original,
326+
title = {{BayesFlow}: Learning complex stochastic models with invertible neural networks},
327+
author = {Radev, Stefan T. and Mertens, Ulf K. and Voss, Andreas and Ardizzone, Lynton and K{\"o}the, Ullrich},
328+
journal = {IEEE transactions on neural networks and learning systems},
329+
volume = {33},
330+
number = {4},
331+
pages = {1452--1466},
332+
year = {2020}
331333
}
332334
333-
@inproceedings{pmlr-v216-radev23a,
334-
title = {{JANA}: Jointly amortized neural approximation of complex {B}ayesian models},
335-
author = {Radev, Stefan T. and Schmitt, Marvin and Pratz, Valentin and Picchini, Umberto and K\"othe, Ullrich and B\"urkner, Paul-Christian},
336-
booktitle = {Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence},
337-
pages = {1695--1706},
338-
year = {2023},
339-
volume = {216},
340-
series = {Proceedings of Machine Learning Research},
341-
publisher = {PMLR}
335+
@inproceedings{bayesflow_2023_jana,
336+
title = {{JANA}: Jointly amortized neural approximation of complex {B}ayesian models},
337+
author = {Radev, Stefan T. and Schmitt, Marvin and Pratz, Valentin and Picchini, Umberto and K\"othe, Ullrich and B\"urkner, Paul-Christian},
338+
booktitle = {Proceedings of the Thirty-Ninth Conference on Uncertainty in Artificial Intelligence},
339+
pages = {1695--1706},
340+
year = {2023},
341+
volume = {216},
342+
series = {Proceedings of Machine Learning Research},
343+
publisher = {PMLR}
342344
}
343345
```

0 commit comments

Comments
 (0)