Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to suggest bounds of a float hyperparameter #242

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Jun 25, 2024

Thanks to the new attributes (and corresponding suggest_with_optuna() arguments) suggest_low and suggest_high, we enforce the possibility of suggesting lower or upper bound.
Indeed, by default, optuna will suggest inside the range (low, high) but never reach exactly a bound (except if a step was provided).

To achieve this, a derived categorical hyperparameter is suggested under the hood to decide whether suggesting the lower bound, upper bound, or a float in between. The "generated" hyperparameter will be named as the original hyperparameter, suffixed with ".suggest_bound" and will take as values

  • "low": lower bound suggested
  • "high": upper bound suggested
  • "": usual behaviour

Thanks to the new attributes (and corresponding `suggest_with_optuna()`
arguments) `suggest_low` and `suggest_high`, we enforce the
possibility of suggesting lower or upper bound.
Indeed, by default, optuna will suggest inside the range (low, high) but
never reach exactly a bound (except if a step was provided).

To achieve this, a derived categorical hyperparameter is suggested under
the hood to decide whether suggesting the lower bound, upper bound, or a
float in between. The "generated" hyperparameter will be named as the
original hyperparameter, suffixed with ".suggest_bound" and will take as
values
- "low": lower bound suggested
- "high": upper bound suggested
- "": usual behaviour
@g-poveda g-poveda merged commit d48bfd5 into airbus:master Jul 1, 2024
14 checks passed
@nhuet nhuet deleted the hp-float-bounds branch July 11, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants