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
958efabf
Commit
958efabf
authored
Sep 26, 2019
by
apatsekin
Committed by
xuehui
Sep 27, 2019
Browse files
Typos in function invocation and exception msg (#1572)
parent
3e62e60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sdk/pynni/nni/medianstop_assessor/medianstop_assessor.py
src/sdk/pynni/nni/medianstop_assessor/medianstop_assessor.py
+2
-2
No files found.
src/sdk/pynni/nni/medianstop_assessor/medianstop_assessor.py
View file @
958efabf
...
...
@@ -79,7 +79,7 @@ class MedianstopAssessor(Assessor):
self
.
completed_avg_history
[
trial_job_id
].
append
(
history_sum
/
cnt
)
self
.
running_history
.
pop
(
trial_job_id
)
else
:
logger
.
warning
(
'trial_end: trial_job_id does not in running_history'
)
logger
.
warning
(
'trial_end: trial_job_id does not
exist
in running_history'
)
def
assess_trial
(
self
,
trial_job_id
,
trial_history
):
"""assess_trial
...
...
@@ -112,7 +112,7 @@ class MedianstopAssessor(Assessor):
logger
.
exception
(
error
)
except
Exception
as
error
:
logger
.
warning
(
'unrecognized exception in medianstop_assessor:'
)
logger
.
exc
p
etion
(
error
)
logger
.
exce
p
tion
(
error
)
self
.
_update_data
(
trial_job_id
,
num_trial_history
)
if
self
.
high_better
:
...
...
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