-
Notifications
You must be signed in to change notification settings - Fork 442
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
Modify gRPC API with Current Request Number #1728
Modify gRPC API with Current Request Number #1728
Conversation
Maybe it' ok to do not change the original proposal here ? |
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.
SGTM !
@@ -48,7 +48,7 @@ def GetSuggestions(self, request, context): | |||
# Hyperband outlerloop has finished | |||
return reply | |||
# This is a hack to get request number. |
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.
nit: how about change this comment to add the word current ?
for suggestion in skopt_suggested: | ||
logger.info("New suggested parameters for Trial: {}".format(suggestion)) | ||
return_trial_list.append( | ||
BaseSkoptService.convert(self.search_space, suggestion)) | ||
|
||
logger.info("GetSuggestions return {} new Trials\n\n".format(request_number)) | ||
logger.info("GetSuggestions returns {} new Trials\n\n".format(current_request_number)) |
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.
maybe it's not about this PR directly, but isn't this log should be len(skopt_suggested)
or len(return_trial_list)
rather than current_request_number
?
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.
Nice catch!
} | ||
|
||
// Get new suggestions | ||
responseSuggestion, err := rpcClientSuggestion.GetSuggestions(ctx, requestSuggestion) | ||
if err != nil { | ||
return err | ||
} | ||
logger.Info("Getting suggestions", "endpoint", endpoint, "Number of request parameters", requestNum, "Number of response parameters", len(responseSuggestion.ParameterAssignments)) | ||
if len(responseSuggestion.ParameterAssignments) != requestNum { | ||
logger.Info("Getting suggestions", "endpoint", endpoint, "Number of request parameters", currentRequestNum, "Number of response parameters", len(responseSuggestion.ParameterAssignments)) |
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.
nit: Number of request parameters -> Number of current request parameters
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 👍
Thanks!
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!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich, tenzen-y 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 think we decide to change API name to be consistent with Maybe we can keep For our Suggestions we can rename WDYT @gaocegege @anencore94 @johnugeorge ? |
SGTM |
As we discussed last working group meeting, I also agree with this suggestion. What's left now is to decide the way to notify the deprecation of this API. Is it enough to announce on Katib v0.13's Release note and here |
As we discussed, I left Please take a look. |
SGTM |
It make sense :) Thanks for sharing @andreyvelich |
Thanks everyone for the review! |
Fixes: #1637.
I changed
request_number
tocurrent_request_number
to be consistent./hold for the review
Please take a look.
/assign @gaocegege @johnugeorge @tenzen-y @anencore94