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
50ab44ba
Unverified
Commit
50ab44ba
authored
Mar 22, 2022
by
Weidan Kong
Committed by
GitHub
Mar 23, 2022
Browse files
Fix: experiment.list_trial_jobs requires logPath & message (#4633)
parent
19d6b875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
nni/experiment/data.py
nni/experiment/data.py
+7
-2
No files found.
nni/experiment/data.py
View file @
50ab44ba
...
...
@@ -111,6 +111,8 @@ class TrialJob:
Stderr log path.
sequenceId: int
Sequence Id.
message: str
Message including platform/environment.
"""
trialJobId
:
str
status
:
str
...
...
@@ -121,9 +123,11 @@ class TrialJob:
finalMetricData
:
List
[
TrialMetricData
]
stderrPath
:
str
sequenceId
:
int
message
:
str
def
__init__
(
self
,
trialJobId
:
str
,
status
:
str
,
logPath
:
str
,
startTime
:
int
,
sequenceId
:
int
,
endTime
:
int
=
-
1
,
stderrPath
:
str
=
''
,
hyperParameters
:
List
=
[],
finalMetricData
:
List
=
[]):
def
__init__
(
self
,
trialJobId
:
str
,
status
:
str
,
startTime
:
int
,
sequenceId
:
int
,
logPath
:
str
=
''
,
endTime
:
int
=
-
1
,
stderrPath
:
str
=
''
,
hyperParameters
:
List
=
[],
finalMetricData
:
List
=
[],
message
:
str
=
'--'
):
self
.
trialJobId
=
trialJobId
self
.
status
=
status
self
.
hyperParameters
=
[
TrialHyperParameters
(
**
json
.
loads
(
e
))
for
e
in
hyperParameters
]
...
...
@@ -133,3 +137,4 @@ class TrialJob:
self
.
finalMetricData
=
[
TrialMetricData
(
**
e
)
for
e
in
finalMetricData
]
self
.
stderrPath
=
stderrPath
self
.
sequenceId
=
sequenceId
self
.
message
=
message
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