Skip to content
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

Update AutoMLExperimentTests.cs to fix timeout error #6638

Merged
merged 1 commit into from
Apr 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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