Skip to content

Commit

Permalink
handle edge case
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Aug 26, 2024
1 parent 099d016 commit fab5639
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/suggestion/v1beta1/hyperopt/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ def create_hyperopt_domain(self):
hyperopt_search_space[param.name] = hyperopt.hp.loguniform(
param.name,
float(param.min),
float(param.max))
float(param.max))
else:
hyperopt_search_space[param.name] = hyperopt.hp.uniform(
param.name,
float(param.min),
float(param.max))
elif param.type == CATEGORICAL or param.type == DISCRETE:
hyperopt_search_space[param.name] = hyperopt.hp.choice(
param.name, param.list
Expand Down

0 comments on commit fab5639

Please sign in to comment.