Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
4feb466c
"LinuxGUI/git@developer.sourcefind.cn:dadigang/Ventoy.git" did not exist on "12a284b54306edf5d1b0116b3c6f2cfe8d3fde41"
Commit
4feb466c
authored
Aug 04, 2019
by
suiguoxin
Browse files
fix hyperopt quniform/qloguniform issue
parent
591fa1d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
+4
-1
No files found.
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
View file @
4feb466c
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment