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
Implement optuna.terminator using optuna._gp #5241
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.
LGTM!
@nabenabe0928 Could you review this PR? |
Follow-up tasks:
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5241 +/- ##
==========================================
- Coverage 89.88% 89.72% -0.16%
==========================================
Files 213 211 -2
Lines 14004 13835 -169
==========================================
- Hits 12587 12414 -173
- Misses 1417 1421 +4 ☔ View full report in Codecov by Sentry. |
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.
I confirmed that we get the identical result with my modification as well!
import optuna
import numpy as np
from optuna.terminator import RegretBoundEvaluator
study = optuna.study.create_study(sampler=optuna.samplers.TPESampler(seed=42))
def objective(trial):
x = trial.suggest_float("x", -3, 3)
y = trial.suggest_float("y", -3, 3)
return x ** 2 + y ** 2
study.optimize(objective, n_trials=50)
from optuna.visualization import plot_terminator_improvement
plot_terminator_improvement(study, improvement_evaluator=RegretBoundEvaluator(top_trials_ratio=1.0, seed=42))
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
This reverts commit e004e68.
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
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.
Let's add the version constraints to workflow.yml.
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
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.
I was missing this bug until now.
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
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 the work, 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.
LGTM again!
Motivation
optuna.terminator
tooptuna._gp
from BoTorch.Description of the changes
optuna.terminator
and related code for usingoptuna._gp
.