A Hydra plugin that integrates Optuna for hyperparameter optimization. It enables Optuna samplers and pruners to be used as the sweeper in Hydra's multirun mode for efficient hyperparameter search. Current version: 1.2.0, compatible with Hydra 1.2 and 1.3. Maintained by the Hydra team at Facebook Research. Release cadence is irregular, tied to Hydra core releases.
pip install hydra-optuna-sweeperVerified import paths — ran on the pinned version, not inferred.
Minimal example using Hydra with Optuna sweeper. Run with: `python my_app.py --multirun x=range(0.0,1.0,0.1) y=range(0.0,1.0,0.1) hydra/sweeper=optuna`
Use `hydra/sweeper=optuna` in the command line or in your main config's defaults list.
Add `hydra.sweeper.study_direction: minimize` (or maximize) to your config.
Update your config to use the new plugin config structure: see Hydra 1.2 migration guide.
Do not import directly; use Hydra's sweeper mechanism via config or CLI override.
Run `pip install hydra-optuna-sweeper` and ensure it's installed in the same environment as hydra-core.