Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Sep 7, 2024
1 parent 98bdc9c commit 19a7dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/suggestion/v1beta1/hyperopt/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def create_hyperopt_domain(self):
)
elif param.distribution == api_pb2.NORMAL:
mu = (float(param.min) + float(param.max)) / 2
sigma = (float(param.step)) / 2
sigma = (float(param.max) - float(param.min)) / 6
if param.step:
hyperopt_search_space[param.name] = hyperopt.hp.qnormal(
param.name,
Expand All @@ -110,7 +110,7 @@ def create_hyperopt_domain(self):
)
elif param.distribution == api_pb2.LOG_NORMAL:
mu = (float(param.min) + float(param.max)) / 2
sigma = (float(param.step)) / 2
sigma = (float(param.max) - float(param.min)) / 6
if param.step:
hyperopt_search_space[param.name] = hyperopt.hp.qlognormal(
param.name,
Expand Down

0 comments on commit 19a7dca

Please sign in to comment.