Skip to content

Commit

Permalink
fix: Fix runtime error
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <gaoce@caicloud.io>
  • Loading branch information
gaocegege committed May 30, 2019
1 parent 7f5b0a4 commit c676244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/suggestion/v1alpha2/bayesian_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def GetSuggestions(self, request, context):
lowerbound = np.array(algo_manager.lower_bound)
upperbound = np.array(algo_manager.upper_bound)
self.logger.debug("lowerbound: %r", lowerbound,
extra={"StudyID": request.study_id})
extra={"experimeng_name": request.experiment_name})
self.logger.debug("upperbound: %r", upperbound,
extra={"StudyID": request.study_id})
extra={"experimeng_name": request.experiment_name})
alg = BOAlgorithm(
dim=algo_manager.dim,
N=int(service_params["N"]),
Expand All @@ -86,7 +86,7 @@ def GetSuggestions(self, request, context):
for x_next in x_next_list:
x_next = x_next.squeeze()
self.logger.debug("xnext: %r ", x_next, extra={
"StudyID": request.study_id})
"experiment_name": request.experiment_name})
x_next = algo_manager.parse_x_next(x_next)
x_next = algo_manager.convert_to_dict(x_next)
trials.append(api_pb2.Trial(
Expand Down

0 comments on commit c676244

Please sign in to comment.