"vscode:/vscode.git/clone" did not exist on "b47e8c41ff39f41093d8a24efd8d140f0d7af0fb"
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