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
65fcd4de
Unverified
Commit
65fcd4de
authored
Jul 21, 2022
by
Jiabei Zhao
Committed by
GitHub
Jul 21, 2022
Browse files
Add condition control when passing parameters bounds to scipy.minimize. (#4977)
parent
2f69f28f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
nni/algorithms/hpo/gp_tuner/util.py
nni/algorithms/hpo/gp_tuner/util.py
+2
-1
No files found.
nni/algorithms/hpo/gp_tuner/util.py
View file @
65fcd4de
...
@@ -89,7 +89,8 @@ def acq_max(f_acq, gp, y_max, bounds, space, num_warmup, num_starting_points):
...
@@ -89,7 +89,8 @@ def acq_max(f_acq, gp, y_max, bounds, space, num_warmup, num_starting_points):
x_seeds
=
[
space
.
random_sample
()
for
_
in
range
(
int
(
num_starting_points
))]
x_seeds
=
[
space
.
random_sample
()
for
_
in
range
(
int
(
num_starting_points
))]
bounds_minmax
=
np
.
array
(
bounds_minmax
=
np
.
array
(
[[
bound
[
'_value'
][
0
],
bound
[
'_value'
][
-
1
]]
for
bound
in
bounds
])
[[
bound
[
'_value'
][
0
],
bound
[
'_value'
][
1
if
bound
[
'_type'
]
==
'quniform'
or
bound
[
'_type'
]
==
'qloguniform'
else
-
1
]]
for
bound
in
bounds
])
for
x_try
in
x_seeds
:
for
x_try
in
x_seeds
:
# Find the minimum of minus the acquisition function
# Find the minimum of minus the acquisition function
...
...
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