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
* WIP
* fit api and parallel predcting
* remnove thread lock
* implement for predict_marginalized_over_instances_batch
* add facades for pyrfr
* add pyrfr mf facade
* maint class names
* move rfr to optional requirements
* mainti README
* add tests for rf with log y
* rf trained with n_jobs=-1 instead of None
* make rf compatible with older version sklearn
* maint mypy
* update change log
* add docstrings
* fix black
* maint
* drop support for python 3.8
* maint
* black fix
* simplify pyrfr facade design
* raise errors if pyrfr is not properly installed
* maint rf
* fix pre-commit
* update rfr information for README and docs
---------
Co-authored-by: benjamc <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,7 @@ We hope you enjoy this new user experience as much as we do. 🚀
38
38
39
39
This instruction is for the installation on a Linux system, for Windows and Mac and further information see the [documentation](https://automl.github.io/SMAC3/latest/1_installation/).
40
40
41
-
Create a new environment with python 3.10 and make sure swig is installed either on your system or
42
-
inside the environment. We demonstrate the installation via anaconda in the following:
41
+
Create a new environment with python 3.10. We demonstrate the installation via anaconda in the following:
43
42
44
43
Create and activate environment:
45
44
```
@@ -62,7 +61,7 @@ make install-dev
62
61
starting from 2.4.0, SMAC uses random forest from [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html)
63
62
instead of random forest from [pyrfr](https://pypi.org/project/pyrfr/) as the default surrogate model for HPO tasks.
64
63
However, you could still use the old pyrfr surrogate model by calling `smac.facade.old.HyperparameterOptimizationRFRFacade`
65
-
and `smac.facade.old.MultiFidelityRFRFacade`
64
+
and `smac.facade.old.MultiFidelityRFRFacade`.
66
65
67
66
To work with pyrfr, you need to first install gcc, gxx, and swig:
Now install swig either on the system level e.g. using the following command for Linux:
22
-
```bash
23
-
apt-get install swig
24
-
```
25
-
26
-
Or install swig inside of an already created conda environment using:
27
-
28
-
```bash
29
-
conda install gxx_linux-64 gcc_linux-64 swig
30
-
```
31
-
32
20
## Install SMAC
33
21
You can install SMAC either using PyPI or Conda-forge.
34
22
@@ -63,7 +51,31 @@ conda install smac
63
51
64
52
Read [SMAC feedstock](https://github.com/conda-forge/smac-feedstock) for more details.
65
53
66
-
## Windows (native or via WSL, experimental)
54
+
## Running SMAC with pyrfr
55
+
starting from 2.4.0, SMAC uses random forest from [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html)
56
+
instead of random forest from [pyrfr](https://pypi.org/project/pyrfr/) as the default surrogate model for HPO tasks.
57
+
However, you could still use the old pyrfr surrogate model by calling `smac.facade.old.HyperparameterOptimizationRFRFacade`
58
+
and `smac.facade.old.MultiFidelityRFRFacade`.
59
+
60
+
The Random Forest used in SMAC requires SWIG as a build dependency.
61
+
You could install swig either on the system level e.g. using the following command for Linux:
62
+
```bash
63
+
apt-get install swig
64
+
```
65
+
66
+
Or install swig inside of an already created conda environment using:
67
+
68
+
```bash
69
+
conda install gxx_linux-64 gcc_linux-64 swig
70
+
```
71
+
72
+
And then install smac with the pyrfr option:
73
+
```
74
+
pip install smac[pyrfr]
75
+
```
76
+
77
+
78
+
### pyrfr on Windows (native or via WSL, experimental)
67
79
68
80
SMAC can be installed under Windows in a WSL (Windows Subsystem for Linux).
69
81
You can find an instruction on how to do this here: [Experimental](./10_experimental.md).
0 commit comments