fix: invalidhp handling for single trial experiments
@@ -83,6 +83,7 @@ func (s *randomSearch) trialExitedEarly(
ctx context, requestID model.RequestID, exitedReason model.ExitedReason,
) ([]Operation, error) {
s.PendingTrials--
+ if s.SearchMethodType == RandomSearch {
if exitedReason == model.InvalidHP || exitedReason == model.InitInvalidHP {
var ops []Operation
create := NewCreate(ctx.rand, sampleAll(ctx.hparams, ctx.rand), model.TrialWorkloadSequencerType)
@@ -93,6 +94,7 @@ func (s *randomSearch) trialExitedEarly(
s.PendingTrials++
return ops, nil
}
+ }
return nil, nil
}
