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
If you don't know which backend to use, we recommend JAX as it is currently
81
-
the fastest backend.
81
+
If you don't know which backend to use, we recommend JAX as it is currently the fastest backend.
82
82
83
-
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:
83
+
Once installed, [set the backend environment variable as required by keras](https://keras.io/getting_started/#configuring-your-backend).
84
+
For example, inside your Python script write:
84
85
85
86
```python
86
87
import os
@@ -94,31 +95,19 @@ If you use conda, you can alternatively set this individually for each environme
94
95
conda env config vars set KERAS_BACKEND=jax
95
96
```
96
97
97
-
This way, you also don't have to manually set the backend every time you are starting Python to use BayesFlow.
98
-
99
-
**Caution:** Some people report that the IDE (e.g., VSCode or PyCharm) can silently overwrite environment variables. If you have set your backend as an environment variable and you still get keras-related import errors when loading BayesFlow, these IDE shenanigans might be the culprit. Try setting the keras backend in your Python script via `import os; os.environ["KERAS_BACKEND"] = "<YOUR-BACKEND>"`.
100
-
101
-
### Using pip
102
-
103
-
You can install the Bayesflow from Github with pip:
98
+
Or just plainly set the environment variable in your shell:
This way, you also don't have to manually set the backend every time you are starting Python to use BayesFlow.
110
105
111
-
Bayesflow is currently not conda-installable.
106
+
**Caution:** Some development environments (e.g., VSCode or PyCharm) can silently overwrite environment variables. If you have set your backend as an environment variable and you still get keras-related import errors when loading BayesFlow, these IDE shenanigans might be the culprit. Try setting the keras backend in your Python script via `import os; os.environ["KERAS_BACKEND"] = "<YOUR-BACKEND>"`.
112
107
113
108
### From Source
114
109
115
-
If you want to contribute to BayesFlow, we recommend installing it from source:
0 commit comments