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