2 writes to Path
Microsoft.ML.TestFramework (2)
TestCommandBase.cs (2)
51
Path
= path;
67
Path
= _testCmd.DeleteOutputPath(_dir, _name);
96 references to Path
Microsoft.ML.TestFramework (96)
BaseTestPredictorsMaml.cs (9)
153
AddIfNotEmpty(args, ctx.ModelOverride.
Path
, "in");
174
string str = string.Format("SavePredictorAs in={{{0}}}", modelPath.
Path
);
212
RunResultProcessorTest(new string[] { consOutPath.
Path
}, rpOutPath, rpArgs);
263
if (CheckTestOutputMatchesTrainTest(consOutPath.
Path
, consOutPath2.
Path
, 1))
264
File.Delete(consOutPath2.
Path
);
270
using (var writer = OpenWriter(consOutPath.
Path
, true))
273
writer.WriteLine("Loaded predictor test results differ! Compare baseline with {0}", consOutPath2.
Path
);
450
if (val != null && !string.IsNullOrWhiteSpace(val.
Path
))
TestCommandBase.cs (87)
85
return string.Format("{0}={{{1}}}", name,
Path
);
297
using (var newWriter = OpenWriter(outputPath.
Path
))
537
using (var file = Env.OpenInputFile(model.
Path
))
732
string modelPath = ModelPath().
Path
;
756
File.WriteAllLines(path.
Path
, new string[] {
761
TestCore("showdata", path.
Path
, "loader=text{col=A:I4:0-1 col=B:I4:~ header+ sep=comma}", "");
772
File.WriteAllLines(path2.
Path
, new string[] {
777
TestInOutCore("showdata", path2.
Path
, modelPath, "");
901
string extraArgs = $"tr=FastRankRanking{{t=1}} strat=Strat prexf=rangefilter{{col=Label min=20 max=25}} prexf=term{{col=Strat:Label}} xf=term{{col=Label}} xf=hash{{col=GroupId}} threads- norm=Warn dout={{{perInstFile.
Path
}}}";
1055
TestCore("traintest", transTrainData.
Path
, "loader=trans", extraArgs,
1305
File.WriteAllLines(dataPath.
Path
, new string[] {
1312
string extraArgs = string.Format("test={{{0}}} tr=ftrank{{mil=1 nl=2 iter=5 gains={1} dt+}} eval=rank{{gains={1}}}", dataPath.
Path
, customGains);
1314
TestCore("traintest", dataPath.
Path
, loaderArgs, extraArgs, metricsFile.Arg("dout"));
1382
CheckEqualityFromPathsCore(TestName, scorePath.
Path
, scorePath2.
Path
);
1443
TestCore("savedata", scorePath.
Path
, "loader=binary xf=Copy{col=PredictedLabel1:PredictedLabel col=Score1:Score}",
1450
TestCore("savedata", scorePath2.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1455
TestCore("evaluate", scorePath2.
Path
, null, "lab=L");
1462
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs);
1465
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1481
TestCore("evaluate", scorePath.
Path
, null, "evaluator=Binary{threshold=0.9 useRawScore-} lab=L");
1485
TestCore("evaluate", scorePath.
Path
, null, "evaluator=Binary{threshold=2} lab=L");
1495
TestCore("evaluate", scoreCustomCols.
Path
, null, "evaluator=Binary{score=Score1 prob=Probability1} lab=L");
1521
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1526
TestCore("evaluate", scorePath.
Path
, "", "");
1533
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, null, metricsPath.Arg("dout"));
1543
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs2, null, metricsPath.Arg("dout"));
1568
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1574
TestCore("evaluate", scorePath.
Path
, "", "", metricPath1.Arg("dout"));
1582
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs, metricPath2.Arg("dout"));
1585
CheckEqualityFromPathsCore(TestName, metricPath1.
Path
, metricPath2.
Path
);
1586
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1612
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1617
TestCore("evaluate", scorePath.
Path
, "", "");
1624
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs);
1627
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1723
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1728
TestCore("evaluate", scorePath.
Path
, "", "");
1735
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs);
1738
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1764
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1770
TestCore("evaluate", scorePath.
Path
, "", "", metricsFile1.Arg("dout"));
1777
TestReloadedCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs, null);
1780
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1828
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1857
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1862
TestCore("evaluate", scorePath.
Path
, "", "");
1870
TestCore("evaluate", scorePathTxt.
Path
, evalLoaderArgs, evalExtraArgs, metricsPath.Arg("dout"));
1873
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1904
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1912
TestCore("evaluate", scorePath.
Path
, "", null, summaryFile1.Arg("sf"), metricsFile1.Arg("dout"));
1920
TestCore("evaluate", scorePathTxt.
Path
, "loader=Text", "eval=Ranking{score=Score}",
1923
CheckEqualityFromPathsCore(TestName, outputFile1.
Path
, outputFile2.
Path
);
1924
CheckEqualityFromPathsCore(TestName, summaryFile1.
Path
, summaryFile2.
Path
);
1925
CheckEqualityFromPathsCore(TestName, metricsFile1.
Path
, metricsFile2.
Path
);
1986
TestCore("savedata", scorePath.
Path
, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
2046
using (var newWriter = OpenWriter(outputPath.
Path
))
2075
using (var newWriter = OpenWriter(outputPath.
Path
))
2101
string args = $"data={data} test={data} valid={data} in={model.
Path
} cont+" + " " + loaderArgs + " " + extraArgs;
2102
using (var newWriter = OpenWriter(outputPath.
Path
))
2131
string args = $"data={data} test={data} valid={data} in={model.
Path
} cont+" + " " + loaderArgs + " " + extraArgs;
2132
using (var newWriter = OpenWriter(outputPath.
Path
))
2155
TestCore("savedata", intermediateData.
Path
, "loader=binary", "saver=text", textOutputPath.Arg("dout"));
2172
TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.
Path
), "");
2189
TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.
Path
), "");
2209
TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.
Path
), "");
2227
TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.
Path
), "");
2238
File.WriteAllLines(path.
Path
, new string[] {
2246
var pathA = path.
Path
;
2248
TestReloadedCore("showdata", path.
Path
, "loader=svm{size=5}" + chooseXf, "", "");
2253
TestCore("showdata", path.
Path
, "loader=svm" + chooseXf, "");
2260
File.WriteAllLines(path.
Path
, new string[] {
2264
TestReloadedCore("showdata", path.
Path
, "loader=svm{indices=names}" + chooseXf, "", "");
2270
File.WriteAllLines(path.
Path
, new string[] {
2274
TestInCore("showdata", path.
Path
, modelPath, "");
2278
File.WriteAllLines(path.
Path
, new string[] { "1 aurora:2 :3" });
2279
TestReloadedCore("showdata", path.
Path
, "loader=svm{indices=names}" + chooseXf, "", "");