-
Notifications
You must be signed in to change notification settings - Fork 448
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
Optimize Chocolate Suggestion #1116
Optimize Chocolate Suggestion #1116
Conversation
/retest |
8 similar comments
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
/retest |
CI passed. @gaocegege Can you take a look again, please? |
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
/approve
Thanks for your contribution! 🎉 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaocegege The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I changed Chocolate Suggestion to be consistent with other Suggestions (Hyperopt, skopt).
_chocolate_id
. For this, I use list of recorded dictionariesself.created_trials
variable. I update this list when receive new information about Trials._chocolate_id
for each new assignment and Chocolate algorithms should work correct. User can check data in sqlite3 DB.check_same_thread=False
flag.I tested this Suggestion on
grid
,chocolate-quasirandom
andchocolate-mocmaes
. All Experiments were succeeded. Also, I testedgrid
on 150 Trials and return Experiment functionality./assign @gaocegege
/cc @johnugeorge
While testing I found one thing. In very rare cases, Katib controller calls GetSuggestion and doesn't create appropriate jobs.
It might be because of these sequence of actions in the controller:
GetSuggestion
withrequest_number
= 1.GetSuggestion
GetSuggestion
withrequest_number
= 2, becauseactiveCount
<parallelCount
and got new suggestion with 2 Trials.GetSuggestion
response.So we lose the first suggested Trial.