Skip to content

Commit a7f9162

Browse files
authored
Merge pull request #427 from vpratz/docs-migration-advice
Add advice regarding moving from v1 to v2 to README.
2 parents 5b5363c + 86f2f5b commit a7f9162

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ It provides users and researchers with:
1515
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
1616
fueled by continuous progress in generative AI and Bayesian inference.
1717

18+
## Important Note for Existing Users
19+
20+
You are currently looking at BayesFlow 2.0+, which is a complete rewrite of the library.
21+
While it shares the same overall goals with the 1.x versions, the API is not compatible.
22+
23+
> [!CAUTION]
24+
> A few features, most notably hierarchical models, have not been ported to BayesFlow 2.0+
25+
> yet. We are working on those features and plan to add them soon. You can find the complete
26+
> list in the [FAQ](#faq) below.
27+
28+
The [Moving from BayesFlow v1.1 to v2.0](examples/From_BayesFlow_1.1_to_2.0.ipynb) guide
29+
highlights how concepts and classes relate between the two versions.
30+
1831
## Conceptual Overview
1932

2033
<div align="center">
@@ -216,11 +229,47 @@ while the old version was based on TensorFlow.
216229

217230
-------------
218231

232+
**Question:**
233+
Should I switch to BayesFlow 2.0+ now? Are there features that are still missing?
234+
235+
**Answer:**
236+
In general, we recommend to switch, as the new version is easier to use and will continue
237+
to receive improvements and new features. However, a few features are still missing, so you
238+
might want to wait until everything you need has been ported to BayesFlow 2.0+.
239+
240+
Depending on your needs, you might not want to upgrade yet if one of the following applies:
241+
242+
- You have an ongoing project that uses BayesFlow 1.x, and you do not want to allocate
243+
time for migrating it to the new API.
244+
- You have already trained models in BayesFlow 1.x, that you do not want to re-train
245+
with the new version. Loading models from version 1.x in version 2.0+ is not supported.
246+
- You require a feature that was not ported to BayesFlow 2.0+ yet. To our knowledge,
247+
this applies to:
248+
* Two-level/Hierarchical models: `TwoLevelGenerativeModel`, `TwoLevelPrior`.
249+
* Sensitivity analysis: functionality from the `bayesflow.sensitivity` module.
250+
* MCMC (discontinued): The `bayesflow.mcmc` module. We are considering other options
251+
to enable the use of BayesFlow in an MCMC setting.
252+
* Networks: `EvidentialNetwork`.
253+
* Model misspecification detection: MMD test in the summary space (see #384).
254+
255+
If you encounter any functionality that is missing and not listed here, please let us
256+
know by opening an issue.
257+
258+
-------------
259+
219260
**Question:**
220261
I still need the old BayesFlow for some of my projects. How can I install it?
221262

222263
**Answer:**
223264
You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
265+
The corresponding [documentation](https://bayesflow.org/stable-legacy/index.html) can be
266+
accessed by selecting the "stable-legacy" entry in the version picker of the documentation.
267+
268+
You can also install the latest version of BayesFlow v1.x from PyPI using
269+
270+
```
271+
pip install "bayesflow<2.0"
272+
```
224273

225274
-------------
226275

docsrc/source/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ It provides users and researchers with:
1010
BayesFlow (version 2+) is designed to be a flexible and efficient tool that enables rapid statistical inference
1111
fueled by continuous progress in generative AI and Bayesian inference.
1212

13+
To access the documentation for [BayesFlow version 1.x](https://github.com/bayesflow-org/bayesflow/tree/stable-legacy), select `stable-legacy` in the version picker above.
14+
For advice on the migration from version 1.x to version 2+, please refer to the [README](https://github.com/bayesflow-org/bayesflow/blob/main/README.md).
15+
1316
## Conceptual Overview
1417

1518
<div align="center">

0 commit comments

Comments
 (0)