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
Copy file name to clipboardExpand all lines: README.md
+56
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,25 @@ It provides users and researchers with:
15
15
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
16
16
fueled by continuous progress in generative AI and Bayesian inference.
17
17
18
+
> [!IMPORTANT]
19
+
> As the 2.0 version introduced many new features, we still have to make breaking changes from time to time.
20
+
> This especially concerns **saving and loading** of models. We aim to stabilize this from the 2.1 release onwards.
21
+
> Until then, consider pinning your BayesFlow 2.0 installation to an exact version, or re-training after an update
22
+
> for less costly models.
23
+
24
+
## Important Note for Existing Users
25
+
26
+
You are currently looking at BayesFlow 2.0+, which is a complete rewrite of the library.
27
+
While it shares the same overall goals with the 1.x versions, the API is not compatible.
28
+
29
+
> [!CAUTION]
30
+
> A few features, most notably hierarchical models, have not been ported to BayesFlow 2.0+
31
+
> yet. We are working on those features and plan to add them soon. You can find the complete
32
+
> list in the [FAQ](#faq) below.
33
+
34
+
The [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb) guide
35
+
highlights how concepts and classes relate between the two versions.
36
+
18
37
## Conceptual Overview
19
38
20
39
<divalign="center">
@@ -216,11 +235,48 @@ while the old version was based on TensorFlow.
216
235
217
236
-------------
218
237
238
+
**Question:**
239
+
Should I switch to BayesFlow 2.0+ now? Are there features that are still missing?
240
+
241
+
**Answer:**
242
+
In general, we recommend to switch, as the new version is easier to use and will continue
243
+
to receive improvements and new features. However, a few features are still missing, so you
244
+
might want to wait until everything you need has been ported to BayesFlow 2.0+.
245
+
246
+
Depending on your needs, you might not want to upgrade yet if one of the following applies:
247
+
248
+
- You have an ongoing project that uses BayesFlow 1.x, and you do not want to allocate
249
+
time for migrating it to the new API.
250
+
- You have already trained models in BayesFlow 1.x, that you do not want to re-train
251
+
with the new version. Loading models from version 1.x in version 2.0+ is not supported.
252
+
- You require a feature that was not ported to BayesFlow 2.0+ yet. To our knowledge,
253
+
this applies to:
254
+
* Two-level/Hierarchical models (planned for version 2.1): `TwoLevelGenerativeModel`, `TwoLevelPrior`.
255
+
* Sensitivity analysis (partially discontinued): functionality from the `bayesflow.sensitivity` module. This is still
256
+
possible, but we do no longer offer a special module for it. We plan to add a tutorial on this, see [#455](https://github.com/bayesflow-org/bayesflow/issues/455).
257
+
* MCMC (discontinued): The `bayesflow.mcmc` module. We are considering other options
258
+
to enable the use of BayesFlow in an MCMC setting.
259
+
* Networks: `EvidentialNetwork`.
260
+
* Model misspecification detection: MMD test in the summary space (see #384).
261
+
262
+
If you encounter any functionality that is missing and not listed here, please let us
263
+
know by opening an issue.
264
+
265
+
-------------
266
+
219
267
**Question:**
220
268
I still need the old BayesFlow for some of my projects. How can I install it?
221
269
222
270
**Answer:**
223
271
You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
272
+
The corresponding [documentation](https://bayesflow.org/stable-legacy/index.html) can be
273
+
accessed by selecting the "stable-legacy" entry in the version picker of the documentation.
274
+
275
+
You can also install the latest version of BayesFlow v1.x from PyPI using
0 commit comments