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
Submit a [pull request](https://github.com/automl/CARP-S/pulls) through the GitHub website!
82
82
83
83
## Local Development
84
-
85
-
### Virtual Environments
86
-
You can try to install all dependencies into one big environment, but probably there are package clashes.
87
-
Therefore, you can build one virtual environment for each optimizer-benchmark combination.
88
-
Either run `scripts/build_envs.sh` to build all existing combinations or copy the combination and run as needed. It will create an environment with name `automlsuite_${OPTIMIZER_CONTAINER_ID}_${BENCHMARK_ID}`.
84
+
To promote compatibility we encourage to enable `numpy>2.0.0` and `ConfigSpace>1.0.0`, and that in general modern
85
+
python versions are supported.
86
+
If there are still package clashes, you can create a virtual env per benchmark and optimizer.
89
87
90
88
## Pull Request Guidelines
91
89
Before you submit a pull request, check that it meets these guidelines:
92
90
93
91
1. The pull request should include tests.
94
92
2. If the pull request adds functionality, the docs should be updated.
95
93
Put your new functionality into a function with a docstring, and add the feature to the list in `README.md`.
96
-
3. The pull request should work for `Python 3.9` and
94
+
3. The pull request should work for `Python 3.9`(ideally newer versions) and
97
95
make sure that the tests pass for all supported Python versions.
@@ -20,8 +20,6 @@ For more details on CARP-S, please have a look at the
20
20
21
21
### Installation from PyPI
22
22
23
-
⚠️ The installation of the optimizers and benchmarks/tasks currently does not work via pip due to packaging issues of the install scripts. Until this is fixed, please install `carps` from source (see below).
24
-
25
23
To install CARP-S, you can simply use `pip`:
26
24
27
25
1. Create virtual env with conda or uv
@@ -76,25 +74,15 @@ $PIP install .
76
74
$PIP install -e .
77
75
```
78
76
79
-
If you want to install CARP-S for development, you can use the following command:
77
+
If you want to install CARP-S for development, you can use the following command (from the root of the repo):
80
78
```bash
81
-
make install-dev
79
+
$PIP install -e .
80
+
python -m carps.build.make install-dev
82
81
```
83
82
#### Apptainer
84
-
You can also create a container with the env setup by running `apptainer build container/env.sif container/env.def`.
85
-
Then you can execute any carps commands as usual by add this prefix `apptainer exec container/env.sif` before the
86
-
command, e.g. `apptainer exec container/env.sif python -m carps.run +task/... +optimizer/...`.
87
-
There is also an sbatch script to run experiments from the database using the apptainer on a slurm cluster
88
-
(`sbatch scripts/container_run_from_db.sh`). You might need to adapt the array size and the number of repetitions
89
-
according to the number of experiments you can run.
90
-
91
-
PS.: On some clusters you might need to load the module apptainer like so `module load tools Apptainer`.
92
-
Troubleshooting: If you have problems writing your cache directory, mount-bind it like so
93
-
`apptainer shell --bind $XDG_CACHE_HOME container/env.sif`. This binds the directory `$XDG_CACHE_HOME` in the
94
-
container to the directory `$XDG_CACHE_HOME` on the host.
95
-
If you have problems with `/var/lib/hpobench`, this bind might help:
96
-
`<hpobench data dir>:/var/lib/hpobench/data`. `<hpobench data dir>` can be found in
0 commit comments