@@ -223,7 +223,7 @@ public async Task AutoMLExperiment_UCI_Adult_Train_Test_Split_Test()
223
223
experiment . SetDataset ( context . Data . TrainTestSplit ( data ) )
224
224
. SetBinaryClassificationMetric ( BinaryClassificationMetric . AreaUnderRocCurve , DatasetUtil . UciAdultLabel )
225
225
. SetPipeline ( pipeline )
226
- . SetTrainingTimeInSeconds ( 1 ) ;
226
+ . SetMaxModelToExplore ( 1 ) ;
227
227
228
228
var result = await experiment . RunAsync ( ) ;
229
229
result . Metric . Should ( ) . BeGreaterThan ( 0.8 ) ;
@@ -248,7 +248,7 @@ public async Task AutoMLExperiment_UCI_Adult_CV_5_Test()
248
248
experiment . SetDataset ( data , 5 )
249
249
. SetBinaryClassificationMetric ( BinaryClassificationMetric . AreaUnderRocCurve , DatasetUtil . UciAdultLabel )
250
250
. SetPipeline ( pipeline )
251
- . SetTrainingTimeInSeconds ( 10 ) ;
251
+ . SetMaxModelToExplore ( 1 ) ;
252
252
253
253
var result = await experiment . RunAsync ( ) ;
254
254
result . Metric . Should ( ) . BeGreaterThan ( 0.8 ) ;
@@ -275,7 +275,7 @@ public async Task AutoMLExperiment_Iris_CV_5_Test()
275
275
experiment . SetDataset ( data , 5 )
276
276
. SetMulticlassClassificationMetric ( MulticlassClassificationMetric . MacroAccuracy , label )
277
277
. SetPipeline ( pipeline )
278
- . SetTrainingTimeInSeconds ( 10 ) ;
278
+ . SetMaxModelToExplore ( 1 ) ;
279
279
280
280
var result = await experiment . RunAsync ( ) ;
281
281
result . Metric . Should ( ) . BeGreaterThan ( 0.8 ) ;
@@ -302,7 +302,7 @@ public async Task AutoMLExperiment_Iris_Train_Test_Split_Test()
302
302
experiment . SetDataset ( context . Data . TrainTestSplit ( data ) )
303
303
. SetMulticlassClassificationMetric ( MulticlassClassificationMetric . MacroAccuracy , label )
304
304
. SetPipeline ( pipeline )
305
- . SetTrainingTimeInSeconds ( 10 ) ;
305
+ . SetMaxModelToExplore ( 1 ) ;
306
306
307
307
var result = await experiment . RunAsync ( ) ;
308
308
result . Metric . Should ( ) . BeGreaterThan ( 0.8 ) ;
0 commit comments