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

Duplicated suggestions generated when early stopping is enabled #2002

Closed
shaowei-su opened this issue Nov 8, 2022 · 3 comments
Closed

Duplicated suggestions generated when early stopping is enabled #2002

shaowei-su opened this issue Nov 8, 2022 · 3 comments
Labels

Comments

@shaowei-su
Copy link
Contributor

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

When early stopping is enabled with bayesianoptimization, duplicated suggestions/trials are generated.
See suggestion service log:

INFO:pkg.suggestion.v1beta1.skopt.base_service:Optimizer tell method takes 0 seconds
INFO:pkg.suggestion.v1beta1.skopt.base_service:List of recorded Trials names: ['exp-6f14cce0-5ac6-11ed-bd7e-acde48001122-6wcpxc58', 'exp-6f14cce0-5ac6-11ed-bd7e-acde48001122-ss88lpl9', 'exp-6f14cce0-5ac6-11ed-bd7e-acde48001122-8t8ftjlj', 'exp-6f14cce0-5ac6-11ed-bd7e-acde48001122-szmjrvjc']

INFO:pkg.suggestion.v1beta1.skopt.base_service:Running Optimizer ask to query new parameters for Trials

INFO:pkg.suggestion.v1beta1.skopt.base_service:New suggested parameters for Trial: [0.0008577340571058496, 0.23212435323286384, 'True', 13]
INFO:pkg.suggestion.v1beta1.skopt.base_service:GetSuggestions returns 1 new Trials


INFO:pkg.suggestion.v1beta1.skopt.base_service:----------------------------------------------------------------------------------------------------

INFO:pkg.suggestion.v1beta1.skopt.base_service:New GetSuggestions call

INFO:pkg.suggestion.v1beta1.skopt.base_service:Succeeded Trials didn't change: 4

INFO:pkg.suggestion.v1beta1.skopt.base_service:Running Optimizer ask to query new parameters for Trials

INFO:pkg.suggestion.v1beta1.skopt.base_service:New suggested parameters for Trial: [0.0008577340571058496, 0.23212435323286384, 'True', 13]
INFO:pkg.suggestion.v1beta1.skopt.base_service:GetSuggestions returns 1 new Trials

Here the highlight is Succeeded Trials didn't change: 4

What did you expect to happen:

Suggestion service should see early stopped trials in the service request and apply updates to skopt_suggested and loss_for_skopt: https://github.com/kubeflow/katib/blob/master/pkg/suggestion/v1beta1/skopt/base_service.py#L105

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Katib version (check the Katib controller image version): V0.14.0
  • Kubernetes version: (kubectl version): v1.21.14
  • OS (uname -a): Ubuntu1804

Impacted by this bug? Give it a 👍 We prioritize the issues with the most 👍

@shaowei-su shaowei-su changed the title Duplicated suggestion when early stopping is enabled Duplicated suggestions generated when early stopping is enabled Nov 8, 2022
@shaowei-su
Copy link
Contributor Author

Found the issue around the converter: #2004, PTAL

@tenzen-y
Copy link
Member

tenzen-y commented Jan 7, 2023

This issue was resolved. Thanks for fixing this.
/close

@google-oss-prow
Copy link

@tenzen-y: Closing this issue.

In response to this:

This issue was resolved. Thanks for fixing this.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants