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
Support constant_liar
in multi-objective TPESampler
#5021
Support constant_liar
in multi-objective TPESampler
#5021
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5021 +/- ##
==========================================
- Coverage 89.40% 89.39% -0.01%
==========================================
Files 203 203
Lines 15055 15055
==========================================
- Hits 13460 13459 -1
- Misses 1595 1596 +1
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@knshnb @contramundum53 Could you review this PR? |
I will add a test later. |
d7772ca
to
52000cf
Compare
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.
LGTM!
91e5d04
to
fbf342c
Compare
This pull request has not seen any recent activity. |
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.
Sorry for the delayed response... Almost LGTM except for one comment.
optuna/samplers/_tpe/sampler.py
Outdated
@@ -646,6 +642,7 @@ def _split_complete_trials_multi_objective( | |||
n_below: int, | |||
) -> tuple[list[FrozenTrial], list[FrozenTrial]]: | |||
if n_below == 0: | |||
# QUESTION: Shall I change it as well?? |
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.
This does not seem to be related to this PR, so shall we handle this as another issue?
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 for the update!
Motivation
Support
constant_liar
for multi-objective TPE as mentioned in #3565 .Description of the changes
As
running_trials
is simply added tosamples_above
in the current implementation, we just need to remove the branching in the if-statement for multi-objective andconstant_liar
.