"LinuxGUI/git@developer.sourcefind.cn:dadigang/Ventoy.git" did not exist on "12a284b54306edf5d1b0116b3c6f2cfe8d3fde41"
Commit 4feb466c authored by suiguoxin's avatar suiguoxin
Browse files

fix hyperopt quniform/qloguniform issue

parent 591fa1d7
......@@ -91,7 +91,10 @@ def json2parameter(in_x, parameter, name=NodeType.ROOT):
name=name + '[%d]' % _index)
}
else:
out_y = parameter[name]
if _type in ['quniform', 'qloguniform']:
out_y = np.clip(parameter[name], in_x[NodeType.VALUE][0], in_x[NodeType.VALUE][1])
else:
out_y = parameter[name]
else:
out_y = dict()
for key in in_x.keys():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment