Skip to content

Commit

Permalink
AutoML PipelineSuggester: don't recommend pipelines from first-stage …
Browse files Browse the repository at this point in the history
…trainers that failed (#3593)
  • Loading branch information
daholste authored Apr 26, 2019
1 parent 29d92ed commit fe77854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.ML.Auto/PipelineSuggesters/PipelineSuggester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ private static IEnumerable<SuggestedTrainer> GetTopTrainers(IEnumerable<Suggeste
IEnumerable<SuggestedTrainer> availableTrainers,
bool isMaximizingMetric)
{
// narrow history to first stage runs
history = history.Take(availableTrainers.Count());
// narrow history to first stage runs that succeeded
history = history.Take(availableTrainers.Count()).Where(x => x.RunSucceded);

history = history.GroupBy(r => r.Pipeline.Trainer.TrainerName).Select(g => g.First());
IEnumerable<SuggestedPipelineRunDetail> sortedHistory = history.OrderBy(r => r.Score);
Expand Down

0 comments on commit fe77854

Please sign in to comment.