-
-
Notifications
You must be signed in to change notification settings - Fork 963
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
suggest_float with step in multi_objective #1205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your quick response, it basically looks good to me.
I put one comment.
optuna/multi_objective/trial.py
Outdated
@@ -42,14 +42,16 @@ def __init__(self, trial: Trial): | |||
# See also: https://github.com/optuna/optuna/pull/1054/files#r407982636 | |||
self._n_objectives = multi_objective.study.MultiObjectiveStudy(trial.study).n_objectives | |||
|
|||
def suggest_float(self, name: str, low: float, high: float, *, log: bool = False) -> float: | |||
def suggest_float( | |||
self, name: str, low: float, high: float, *, log: bool = False, step: Optional[float] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply black by black --line-length 99 optuna/multi_objective/trial.py
.
https://circleci.com/gh/optuna/optuna/39429
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thank you for reviewing my PR! |
Motivation
suggest_float
can takestep
argument but it cannot be available inmulti_objective
.Description of the changes
Add
step
argumentsuggest_float
and its tests commented by @himkt in #1203 (comment).It also contains minor fix in the test file.