Unverified Commit 50ab44ba authored by Weidan Kong's avatar Weidan Kong Committed by GitHub
Browse files

Fix: experiment.list_trial_jobs requires logPath & message (#4633)

parent 19d6b875
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment