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
2a7881ea
Unverified
Commit
2a7881ea
authored
Aug 12, 2019
by
QuanluZhang
Committed by
GitHub
Aug 12, 2019
Browse files
fix bug when duplicated final results (#1456)
* fix bug for duplicated final results
parent
eaf42120
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
+4
-0
No files found.
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
View file @
2a7881ea
...
@@ -315,6 +315,10 @@ class HyperoptTuner(Tuner):
...
@@ -315,6 +315,10 @@ class HyperoptTuner(Tuner):
rval
=
self
.
CL_rval
rval
=
self
.
CL_rval
else
:
else
:
rval
=
self
.
rval
rval
=
self
.
rval
# ignore duplicated reported final result (due to aware of intermedate result)
if
parameter_id
not
in
self
.
running_data
:
logger
.
info
(
"Received duplicated final result with parameter id: %s"
,
parameter_id
)
return
self
.
running_data
.
remove
(
parameter_id
)
self
.
running_data
.
remove
(
parameter_id
)
# update the reward of optimal_y
# update the reward of optimal_y
...
...
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