Feature/upgrade optuna 4.2.1 - #3046
Conversation
|
I need this! |
|
Awesome! I see merging this could resolve a bunch of other issues: The old sweeper is currently unusable for me, so for now I'm installing directly from this PR with: and for me it's working without issues (I'm using TPESampler and various FloatDistributions, both log and uniform). |
|
@rsokl Is there any chance to merge this PR? |
|
Hi, any breaking changes in the config? (existing configs will continue to work)? |
|
Thanks for working on this, and thanks to everyone who tested it. We are going to consolidate the Optuna v4 work in #3211 instead of keeping two competing upgrade PRs open. #3211 covers the same plugin upgrade path and is the active PR currently being reviewed, so I am closing this one as superseded. Please follow #3211 for the remaining Optuna v4 work. |
Upgrade hydra_optuna_sweeper to Optuna 4.2.1
Summary
This PR upgrades the hydra_optuna_sweeper plugin to use Optuna 4.2.1 (from 3.0.0) and updates the code to comply with the latest
Optuna APIs, replacing deprecated distribution classes and methods.
Changes
DiscreteUniformDistribution→FloatDistributionwith step parameterIntUniformDistribution,IntLogUniformDistribution→IntDistributionUniformDistribution,LogUniformDistribution→FloatDistributionTest Plan
Backward Compatibility
This change maintains backward compatibility with existing configurations.