Hydra sweeper integration of our favorite optimization packages, utilizing ask-and-tell interfaces.
Project description
HyperSweeper
Hydra sweeper integration of our favorite optimization packages, utilizing ask-and-tell interfaces.
- Free software: BSD license
- Documentation: https://hypersweeper.readthedocs.io.
Installation
We recommend installing hypersweeper in a fresh conda environment:
conda create -n hypersweeper python=3.10
make install
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.
Current Sweeper Integrations
- Random Search
- SMAC
- HEBO
- PBT
- CARP-S
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for HyperSweeper-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e9ed2d671ad3b8872fe7a0e26352676b6fd2843bb911cdda9b56612990e2d9 |
|
MD5 | bc554e554b2484be6858ba24e64ba4ae |
|
BLAKE2b-256 | f298312654678950ffa31ad689b71bc13aea325fd22c7dd043805bcf8528d758 |