2 writes to _env
Microsoft.ML.TestFramework (2)
BaseTestBaseline.cs (2)
107_env = new ConsoleEnvironment(42, outWriter: LogWriter, errWriter: LogWriter, testWriter: TestLogger) 186_env = null;
29 references to _env
Microsoft.ML.TestFramework (29)
BaseTestBaseline.cs (1)
84protected IHostEnvironment Env => _env;
BaseTestPredictorsMaml.cs (2)
163res = MainForTest(_env, LogWriter, string.Join(" ", ctx.Command, runcmd), ctx.BaselineProgress); 194MainForTest(_env, LogWriter, str);
DataPipe\TestDataPipe.cs (2)
128using (_env.RedirectChannelOutput(writer, writer)) 138_env.PrintProgress();
DataPipe\TestDataPipeBase.cs (9)
189var pipe1 = compositeLoader = CreatePipeDataLoader(_env, pathData, argsPipe, out files); 201var reappliedPipe = ApplyTransformUtils.ApplyAllTransformsToData(_env, comp.View, srcLoader); 217using (_env.RedirectChannelOutput(writer, writer)) 234var pipe2 = LoadPipe(pathModel, _env, files); 246if (!SaveLoadText(pipe1, _env, keepHidden, suffix, suffixBase, checkBaseline, forceDense, 252if (checkTranspose && !SaveLoadTransposed(pipe1, _env, suffix)) 255if (!SaveLoad(pipe1, _env, suffix)) 262var cachedData = new CacheDataView(_env, srcLoader, null); 263var newPipe = ApplyTransformUtils.ApplyAllTransformsToData(_env, comp.View, cachedData);
TestCommandBase.cs (15)
298using (_env.RedirectChannelOutput(newWriter, newWriter)) 300_env.ResetProgressChannel(); 301int res = MainForTest(_env, newWriter, string.Format("{0} {1}", cmdName, args), ctx.BaselineProgress); 2047using (_env.RedirectChannelOutput(newWriter, newWriter)) 2049_env.ResetProgressChannel(); 2050int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2076using (_env.RedirectChannelOutput(newWriter, newWriter)) 2078_env.ResetProgressChannel(); 2079int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2103using (_env.RedirectChannelOutput(newWriter, newWriter)) 2105_env.ResetProgressChannel(); 2106int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2133using (_env.RedirectChannelOutput(newWriter, newWriter)) 2135_env.ResetProgressChannel(); 2136int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true);