-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] add early stopped trials in converter #2004
Changes from all commits
60752f3
d2231ab
523dbf0
33f9bcd
ed2cbca
58ff940
dfea589
f354fdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -343,6 +343,9 @@ func (g *General) ConvertTrials(ts []trialsv1beta1.Trial) []*suggestionapi.Trial | |
if t.IsMetricsUnavailable() { | ||
continue | ||
} | ||
if !t.IsObservationAvailable() && t.IsEarlyStopped() { | ||
continue | ||
} | ||
Comment on lines
+346
to
+348
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shaowei-su Can we add a test for this condition to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @tenzen-y ! I added few more trails in the mock so this branching logic is also validated. Btw, could help restart the failed unit tests? Looks like a flaky test failed. |
||
trial := &suggestionapi.Trial{ | ||
Name: t.Name, | ||
Spec: &suggestionapi.TrialSpec{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, what about
Failed
Trials (I guess the observation is empty for them, right)? Do we want to send them to the Suggestion service ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it make more sense to filter the failed trails out as those won't provide any updates to the suggestion service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some Suggestion services record failed Trials on its own DataBase (e.g. Goptuna Suggestion)
@shaowei-su Do you have any concerns with sending Failed Trials to the Suggestion service ?
We add failed Trials to completed, so it won't ask Suggestion service to generate new Trials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I didn't realize that failed trials are tracked by other suggestion services. Updated in the latest commit to filter on
early stopped & without observations
trials only, PTAL.