Skip to content

Commit c0a0816

Browse files
authored
Merge pull request #184 from automl/docs/installation-of-extra-reqs
Docs/installation of extra reqs
2 parents 09f1c97 + 46b0fd2 commit c0a0816

File tree

7 files changed

+33
-13
lines changed

7 files changed

+33
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 1.3.1
2+
3+
## Quality of Life
4+
- Improved documentation on installation of extra requirements.
5+
16
# Version 1.3
27

38
## Converters

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ conda install -c anaconda swig
2525
pip install DeepCAVE
2626
```
2727

28-
If you want to contribute to DeepCAVE use the following steps instead:
28+
To load runs created with Optuna or the BOHB optimizer, you need to install the
29+
respective packages by running:
30+
```bash
31+
pip install deepcave[optuna]
32+
pip install deepcave[bohb]
33+
```
34+
35+
If you want to contribute to DeepCAVE, use the following steps instead:
2936
```bash
3037
git clone https://github.com/automl/DeepCAVE.git
3138
cd DeepCAVE
@@ -35,18 +42,11 @@ conda install -c anaconda swig
3542
make install-dev
3643
```
3744

38-
If you want to try the examples for recording your results in DeepCAVE format, run this after installing:
45+
To try the examples for recording your results in DeepCAVE format, run this after installing:
3946
```bash
4047
make install-examples
4148
```
4249

43-
To load runs created with Optuna or the BOHB optimizer, you need to install the
44-
respective packages by running:
45-
```bash
46-
make install-optuna
47-
make install-bohb
48-
```
49-
5050
Please visit the [documentation](https://automl.github.io/DeepCAVE/main/installation.html) to get
5151
further help (e.g. if you cannot install redis server or if you are on MacOS).
5252

deepcave/runs/converters/bohb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def from_path(cls, path: Union[Path, str]) -> "BOHBRun":
100100
except ImportError:
101101
raise ImportError(
102102
"The HpBandSter package is required to load BOHB runs. "
103-
"Please install it via `make install-bohb`"
103+
"Please install it via `pip install deepcave[bohb]`"
104104
)
105105

106106
bohb = logged_results_to_HBS_result(str(path))

deepcave/runs/converters/optuna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def from_path(cls, path: Union[Path, str]) -> "OptunaRun":
134134
except ImportError:
135135
raise ImportError(
136136
"The Optuna package is required to load Optuna runs. "
137-
"Please install it via `make install-optuna`"
137+
"Please install it via `pip install deepcave[optuna]`"
138138
)
139139

140140
# Load the optuna study from the file path

docs/converters/bohb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ To load an BOHB run into DeepCAVE, it is necessary to install HpBandSter, e.g. v
55

66
.. code-block:: bash
77
8-
make install-bohb
8+
pip install deepcave[bohb]

docs/converters/optuna.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Furthermore, to load an Optuna run into DeepCAVE, it is necessary to install Opt
2626

2727
.. code-block:: bash
2828
29-
make install-optuna
29+
pip install deepcave[optuna]
3030
3131
.. warning::
3232
Loading Optuna runs with conditional search spaces or dynamic hyperparameter value ranges

docs/installation.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ installed directly. If you use a different environment, make sure that
2020
conda install -c anaconda swig
2121
pip install DeepCAVE
2222
23+
To load runs created with Optuna or the BOHB optimizer, you need to install the
24+
respective packages by running:
25+
26+
.. code:: bash
27+
28+
pip install deepcave[optuna]
29+
pip install deepcave[bohb]
30+
2331
2432
If you want to contribute to DeepCAVE, you can clone it from GitHub and install the dev package:
2533

@@ -31,6 +39,13 @@ If you want to contribute to DeepCAVE, you can clone it from GitHub and install
3139
conda install -c anaconda swig
3240
make install-dev
3341
42+
To try the examples for recording your results in DeepCAVE format, run this after installing:
43+
44+
.. code:: bash
45+
46+
make install-examples
47+
48+
3449
.. warning::
3550

3651
DeepCAVE is officially tested and supported on Linux platforms.

0 commit comments

Comments
 (0)