You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BayesFlow 2 is a Python library for simulation-based **Amortized Bayesian Inference** with neural networks.
7
+
BayesFlow is a Python library for simulation-based **Amortized Bayesian Inference** with neural networks.
8
8
It provides users and researchers with:
9
9
10
10
- A user-friendly API for rapid Bayesian workflows
11
11
- A rich collection of neural network architectures
12
12
- Multi-backend support via [Keras3](https://keras.io/keras_3/): You can use [PyTorch](https://github.com/pytorch/pytorch), [TensorFlow](https://github.com/tensorflow/tensorflow), or [JAX](https://github.com/google/jax)
13
13
14
-
BayesFlow is designed to be a flexible and efficient tool that enables rapid statistical inference
14
+
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
15
15
fueled by continuous progress in generative AI and Bayesian inference.
16
16
17
17
## Conceptual Overview
@@ -49,7 +49,7 @@ history = workflow.fit_online(epochs=50, batch_size=32, num_batches_per_epoch=50
If you don't know which backend to use, we recommend JAX to get started.
73
-
It is the fastest backend and already works pretty reliably with the current
74
-
dev version of bayesflow.
74
+
If you don't know which backend to use, we recommend JAX as it is currently
75
+
the fastest backend.
75
76
76
77
Once installed, [set the backend environment variable as required by keras](https://keras.io/getting_started/#configuring-your-backend). For example, inside your Python script write:
77
78
@@ -93,22 +94,22 @@ This way, you also don't have to manually set the backend every time you are sta
93
94
94
95
### Using pip
95
96
96
-
You can install the dev version with pip:
97
+
You can install the Bayesflow from Github with pip:
@@ -167,10 +168,24 @@ You can cite BayesFlow along the lines of:
167
168
}
168
169
```
169
170
171
+
## FAQ
172
+
173
+
-*I am starting with Bayesflow, which backend shall I use?*
174
+
**A**: We recommend JAX as it is currently the fastest backend.
175
+
176
+
-*What is the difference between Bayesflow 2.0+ and previous versions?*
177
+
**A**: BayesFlow 2.0+ is a complete rewrite of the library. It shares the same
178
+
overall goals with previous versions, but has much better modularity
179
+
and extensibility. What is more, the new BayesFlow has multi-backend support via Keras3,
180
+
while the old version was based on TensorFlow.
181
+
182
+
-*I still need the old BayesFlow for some of my projects. How can I install it?*
183
+
**A**: You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
184
+
170
185
## Awesome Amortized Inference
171
186
172
187
If you are interested in a curated list of resources, including reviews, software, papers, and other resources related to amortized inference, feel free to explore our [community-driven list](https://github.com/bayesflow-org/awesome-amortized-inference).
173
188
174
189
## Acknowledgments
175
190
176
-
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.
191
+
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) Projects 528702768 and 508399956. 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), the collaborative research cluster TRR 391 – 520388526, as well as the Informatics for Life initiative funded by the Klaus Tschira Foundation.
0 commit comments