Skip to content

Commit cad5d29

Browse files
committed
update FAQ
1 parent f9ef5b3 commit cad5d29

File tree

1 file changed

+43
-6
lines changed

1 file changed

+43
-6
lines changed

README.md

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,54 @@ You can cite BayesFlow along the lines of:
165165

166166
## FAQ
167167

168-
- *I am starting with Bayesflow, which backend shall I use?*
169-
**A**: We recommend JAX as it is currently the fastest backend.
168+
-------------
170169

171-
- *What is the difference between Bayesflow 2.0+ and previous versions?*
172-
**A**: BayesFlow 2.0+ is a complete rewrite of the library. It shares the same
170+
**Question:**
171+
I am starting with Bayesflow, which backend should I use?
172+
173+
**Answer:**
174+
We recommend JAX as it is currently the fastest backend.
175+
176+
-------------
177+
178+
**Question:**
179+
I am getting `ModuleNotFoundError: No module named 'tensorflow'` when I try to import BayesFlow.
180+
181+
**Answer:**
182+
One of these applies:
183+
- You want to use tensorflow as your backend, but you have not installed it.
184+
See [here](https://www.tensorflow.org/install).
185+
186+
187+
- You want to use a backend other than tensorflow, but have not set the environment variable correctly.
188+
See [here](https://keras.io/getting_started/#configuring-your-backend).
189+
190+
191+
- You have set the environment variable, but it is not being picked up by Python.
192+
This can happen silently in some development environments (e.g., VSCode or PyCharm).
193+
Try setting the backend as shown [here](https://keras.io/getting_started/#configuring-your-backend)
194+
in your Python script via `os.environ`.
195+
196+
-------------
197+
198+
**Question:**
199+
What is the difference between Bayesflow 2.0+ and previous versions?
200+
201+
**Answer:**
202+
BayesFlow 2.0+ is a complete rewrite of the library. It shares the same
173203
overall goals with previous versions, but has much better modularity
174204
and extensibility. What is more, the new BayesFlow has multi-backend support via Keras3,
175205
while the old version was based on TensorFlow.
176206

177-
- *I still need the old BayesFlow for some of my projects. How can I install it?*
178-
**A**: You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
207+
-------------
208+
209+
**Question:**
210+
I still need the old BayesFlow for some of my projects. How can I install it?
211+
212+
**Answer:**
213+
You can find and install the old Bayesflow version via the `stable-legacy` branch on GitHub.
214+
215+
-------------
179216

180217
## Awesome Amortized Inference
181218

0 commit comments

Comments
 (0)