Skip to main content

Dynamic Algorithm Configuration Benchmark

Project description

DACBench: A Benchmark Library for Dynamic Algorithm Configuration

PyPI Version Python License Test Doc Status

DACBench is a benchmark library for Dynamic Algorithm Configuration. Its focus is on reproducibility and comparability of different DAC methods as well as easy analysis of the optimization process.

You can try out the basics of DACBench in Colab here without any installation. Our examples in the repository should give you an impression of what you can do with DACBench and our documentation should answer any questions you might have.

Installation

We recommend installing DACBench in a virtual environment, here with uv:

pip install uv
uv venv --python 3.10
source .venv/bin/activate
uv pip install dacbench

Instead of using pip, you can also use the GitHub repo directly:

pip install uv
git clone https://github.com/automl/DACBench.git
cd DACBench
uv venv --python 3.10
source .venv/bin/activate
git submodule update --init --recursive
make install

This command installs the base version of DACBench including the three small surrogate benchmarks. For any other benchmark, you may use a singularity container as provided by us (see next section) or install it as an additional dependency. As an example, to install the SGDBenchmark, run:

uv pip install dacbench[sgd]

You can also install all dependencies like so:

make install-dev

Containerized Benchmarks

DACBench can run containerized versions of Benchmarks using Singularity containers to isolate their dependencies and make reproducible Singularity images.

Building a Container

For writing your own recipe to build a Container, you can refer to dacbench/container/singularity_recipes/recipe_template

Install Singularity and run the following to build the (in this case) cma container

cd dacbench/container/singularity_recipes
sudo singularity build cma cma.def

Citing DACBench

If you use DACBench in your research or application, please cite us:

@inproceedings{eimer-ijcai21,
  author    = {T. Eimer and A. Biedenkapp and M. Reimer and S. Adriaensen and F. Hutter and M. Lindauer},
  title     = {DACBench: A Benchmark Library for Dynamic Algorithm Configuration},
  booktitle = {Proceedings of the Thirtieth International Joint Conference on
               Artificial Intelligence ({IJCAI}'21)},
  year      = {2021},
  month     = aug,
  publisher = {ijcai.org},

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dacbench-0.3.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

DACBench-0.3.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file dacbench-0.3.0.tar.gz.

File metadata

  • Download URL: dacbench-0.3.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for dacbench-0.3.0.tar.gz
Algorithm Hash digest
SHA256 884fecf76d7b9b92ec2fa73a8ddf80b50cba3c4e4c2666644b63533df70da331
MD5 ec35980d15586742d113abdac8ad1cde
BLAKE2b-256 980f4e3ec9e040fa5391f59317256847f20d7090e9743affaeaef1c93fae45ad

See more details on using hashes here.

File details

Details for the file DACBench-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: DACBench-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for DACBench-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f71fad712922578f0e6a3b990ca9426b43f84e76b4563395e5ac4cd777aa3a
MD5 82e82c9dda8490f924ac0a5804e6ff35
BLAKE2b-256 4c29bdf6638fc567d669cf188b888caaef198111c7282e05bd7d1979e5bfb0b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page