forked from experimental-design/bofire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.qmd
More file actions
64 lines (46 loc) · 2.39 KB
/
install.qmd
File metadata and controls
64 lines (46 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Installation Guide
## Installation from Python Package Index (PyPI)
BoFire can be installed to your Python environment by using `pip`. It can be done by executing
```
pip install bofire
```
:::{.callout-tip}
The command from above will install a minimal BoFire version, consisting only of the [data models](docs/userguides/data_models_functionals.qmd). To install BoFire's including its core optimization features, execute:
```
pip install 'bofire[optimization]'
```
:::
### Additional optional dependencies
In BoFire, there are several optional dependencies that can be selected during installation via pip, like
```
pip install 'bofire[optimization, cheminfo] # will install bofire with additional dependencies `optimization` and `cheminfo`
```
To get the most our of BoFire, it is recommended to install at least
```
pip install 'bofire[optimization]'
```
The available dependencies are:
- `optimization`: Core Bayesian optimization features.
- `cheminfo`: Cheminformatics utilities.
- `entmoot`: [Entmoot functionality.](https://github.com/cog-imperial/entmoot)
- `tests`: Required for running the test suite.
- `docs`: Required for building the documentation.
- `tutorials`: Required for running the [tutorials.](https://github.com/experimental-design/bofire/tree/main/tutorials)
- `all`: Install all possible options (except DoE)
:::{.callout-warning}
BoFire has the functionalities for creating D, E, A, G, K and I-optimal experimental designs via the `DoEStrategy`. This feature depends on [cyipopt](https://cyipopt.readthedocs.io/en/stable/) which is a python interface to `ipopt`. Unfortunately, it is not possible to install `cyipopt` including `ipopt` via pip. A solution is to install `cyipopt` and its dependencies via conda:
```
conda install -c conda-forge cyipopt
```
We are working on a solution that makes BoFire's model based DoE functionalities also accessible to users which do not have `cyipopt` available.
:::
## Development Installation
If you want to [contribute](CONTRIBUTING.md) to BoFire, it is recommended to install the repository in editable mode (`-e`).
After cloning the repository via
```
git clone https://github.com/experimental-design/bofire.git
```
and navigating to the repositories root folder (`cd bofire`), you can proceed with
```
pip install -e ".[optimization, tests]" # include optional dependencies as you wish
```