Skip to main content

Hydra sweeper integration of our favorite optimization packages, utilizing ask-and-tell interfaces.

Project description

HyperSweeper

PyPI Version Test Doc Status Ruff

Hydra sweeper integration of our favorite optimization packages, utilizing ask-and-tell interfaces.

Installation

We recommend installing hypersweeper via a uv virtual environment:

pip install uv
uv venv --python 3.10
make install

For extra dependencies, add them like this:

uv sync --extra dev --extra carps

Basic Usage

To use the sweeper, you need to specify a target function with a hydra interface (see our examples). Then you can add one of the Hypersweeper variations as a sweeper and run with the '-m' flag to start the optimization. This will start a sequential run of your selected optimizer. If you want to use Hypersweeper on a cluster, you should additionally add a launcher, e.g. the submitit launcher for slurm.

As an example, take black-box optimization for Branin using SMAC. Simply run:

python examples/branin.py -m

You should see the launched configurations in the terminal. The results are located in 'tmp', including a record of each run, the final config and a full runhistory. For more information, see our example ReadMe.

Current Sweeper Integrations

  • Random Search
  • SMAC
  • HEBO
  • PBT
  • CARP-S (which contains many different optimizers in itself)

Cite Us

If you use Hypersweeper in your project, please cite us:

@misc{eimer24,
  author    = {T. Eimer},
  title     = {Hypersweeper},
  year      = {2024},
  url = {https://github.com/automl/hypersweeper},

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

hypersweeper-0.2.1.tar.gz (65.9 kB view details)

Uploaded Source

Built Distribution

hypersweeper-0.2.1-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file hypersweeper-0.2.1.tar.gz.

File metadata

  • Download URL: hypersweeper-0.2.1.tar.gz
  • Upload date:
  • Size: 65.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for hypersweeper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 59551ce4ba8606692b28ac6f8fb9fdce07c9ae21bfe541850b0ff05d355020a5
MD5 12fa3fcc1f4132d010151cae007b6934
BLAKE2b-256 e151128232e43e501829a62df1c4bdfd94b1a3c27906be2bebb2049720bba80b

See more details on using hashes here.

File details

Details for the file hypersweeper-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hypersweeper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e196afc0e2901fa254b7187a35310cb6f289ac79df9dba290f7a0372306b2114
MD5 77c0eb23733edec2c8b685cc9e0a478e
BLAKE2b-256 89e9dad04f98ae1704bb4c276026661f76c2d22712169c885af85f24d8e6e523

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