@@ -27,7 +27,7 @@ public TestAutoInference(ITestOutputHelper helper)
27
27
[ TestCategory ( "EntryPoints" ) ]
28
28
public void TestLearn ( )
29
29
{
30
- using ( var env = new LocalEnvironment ( )
30
+ using ( var env = new ConsoleEnvironment ( )
31
31
. AddStandardComponents ( ) ) // AutoInference.InferPipelines uses ComponentCatalog to read text data
32
32
{
33
33
string pathData = GetDataPath ( "adult.train" ) ;
@@ -74,7 +74,7 @@ public void TestLearn()
74
74
[ Fact ( Skip = "Need CoreTLC specific baseline update" ) ]
75
75
public void TestTextDatasetLearn ( )
76
76
{
77
- using ( var env = new LocalEnvironment ( )
77
+ using ( var env = new ConsoleEnvironment ( )
78
78
. AddStandardComponents ( ) ) // AutoInference uses ComponentCatalog to find all learners
79
79
{
80
80
string pathData = GetDataPath ( @"../UnitTest/tweets_labeled_10k_test_validation.tsv" ) ;
@@ -99,7 +99,7 @@ public void TestTextDatasetLearn()
99
99
[ Fact ]
100
100
public void TestPipelineNodeCloning ( )
101
101
{
102
- using ( var env = new LocalEnvironment ( )
102
+ using ( var env = new ConsoleEnvironment ( )
103
103
. AddStandardComponents ( ) ) // RecipeInference.AllowedLearners uses ComponentCatalog to find all learners
104
104
{
105
105
var lr1 = RecipeInference
@@ -142,7 +142,7 @@ public void TestHyperparameterFreezing()
142
142
int batchSize = 1 ;
143
143
int numIterations = 10 ;
144
144
int numTransformLevels = 3 ;
145
- using ( var env = new LocalEnvironment ( )
145
+ using ( var env = new ConsoleEnvironment ( )
146
146
. AddStandardComponents ( ) ) // AutoInference uses ComponentCatalog to find all learners
147
147
{
148
148
SupportedMetric metric = PipelineSweeperSupportedMetrics . GetSupportedMetric ( PipelineSweeperSupportedMetrics . Metrics . Auc ) ;
@@ -191,7 +191,7 @@ public void TestRegressionPipelineWithMinimizingMetric()
191
191
int batchSize = 5 ;
192
192
int numIterations = 10 ;
193
193
int numTransformLevels = 1 ;
194
- using ( var env = new LocalEnvironment ( )
194
+ using ( var env = new ConsoleEnvironment ( )
195
195
. AddStandardComponents ( ) ) // AutoInference uses ComponentCatalog to find all learners
196
196
{
197
197
SupportedMetric metric = PipelineSweeperSupportedMetrics . GetSupportedMetric ( PipelineSweeperSupportedMetrics . Metrics . AccuracyMicro ) ;
@@ -226,7 +226,7 @@ public void TestLearnerConstrainingByName()
226
226
int numIterations = 1 ;
227
227
int numTransformLevels = 2 ;
228
228
var retainedLearnerNames = new [ ] { $ "LogisticRegressionBinaryClassifier", $ "FastTreeBinaryClassifier" } ;
229
- using ( var env = new LocalEnvironment ( )
229
+ using ( var env = new ConsoleEnvironment ( )
230
230
. AddStandardComponents ( ) ) // AutoInference uses ComponentCatalog to find all learners
231
231
{
232
232
SupportedMetric metric = PipelineSweeperSupportedMetrics . GetSupportedMetric ( PipelineSweeperSupportedMetrics . Metrics . Auc ) ;
0 commit comments