Skip to content

Commit

Permalink
Update AutoMLExperimentTests.cs to fix timeout error (#6638)
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleLittleCloud authored Apr 30, 2023
1 parent 3386245 commit a18b9cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Microsoft.ML.AutoML.Tests/AutoMLExperimentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public async Task AutoMLExperiment_UCI_Adult_Train_Test_Split_Test()
experiment.SetDataset(context.Data.TrainTestSplit(data))
.SetBinaryClassificationMetric(BinaryClassificationMetric.AreaUnderRocCurve, DatasetUtil.UciAdultLabel)
.SetPipeline(pipeline)
.SetTrainingTimeInSeconds(1);
.SetMaxModelToExplore(1);

var result = await experiment.RunAsync();
result.Metric.Should().BeGreaterThan(0.8);
Expand All @@ -248,7 +248,7 @@ public async Task AutoMLExperiment_UCI_Adult_CV_5_Test()
experiment.SetDataset(data, 5)
.SetBinaryClassificationMetric(BinaryClassificationMetric.AreaUnderRocCurve, DatasetUtil.UciAdultLabel)
.SetPipeline(pipeline)
.SetTrainingTimeInSeconds(10);
.SetMaxModelToExplore(1);

var result = await experiment.RunAsync();
result.Metric.Should().BeGreaterThan(0.8);
Expand All @@ -275,7 +275,7 @@ public async Task AutoMLExperiment_Iris_CV_5_Test()
experiment.SetDataset(data, 5)
.SetMulticlassClassificationMetric(MulticlassClassificationMetric.MacroAccuracy, label)
.SetPipeline(pipeline)
.SetTrainingTimeInSeconds(10);
.SetMaxModelToExplore(1);

var result = await experiment.RunAsync();
result.Metric.Should().BeGreaterThan(0.8);
Expand All @@ -302,7 +302,7 @@ public async Task AutoMLExperiment_Iris_Train_Test_Split_Test()
experiment.SetDataset(context.Data.TrainTestSplit(data))
.SetMulticlassClassificationMetric(MulticlassClassificationMetric.MacroAccuracy, label)
.SetPipeline(pipeline)
.SetTrainingTimeInSeconds(10);
.SetMaxModelToExplore(1);

var result = await experiment.RunAsync();
result.Metric.Should().BeGreaterThan(0.8);
Expand Down

0 comments on commit a18b9cb

Please sign in to comment.