We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09dabf7 commit e7ac972Copy full SHA for e7ac972
pkg/suggestion/v1beta1/internal/search_space.py
@@ -49,7 +49,10 @@ def convert_to_combinations(search_space):
49
combinations[parameter.name] = range(int(parameter.min), int(parameter.max)+1, int(parameter.step))
50
elif parameter.type == DOUBLE:
51
if parameter.step == "" or parameter.step is None:
52
- raise Exception("Param {} step is nil".format(parameter.name))
+ raise Exception(
53
+ "Param {} step is nil; For discrete search space, all parameters must include step".
54
+ format(parameter.name)
55
+ )
56
double_list = np.arange(float(parameter.min), float(parameter.max)+float(parameter.step),
57
float(parameter.step))
58
if double_list[-1] > float(parameter.max):
0 commit comments