95 references to TestCore
Microsoft.ML.TestFramework (95)
TestCommandBase.cs (95)
713TestCore("cv", trainData, loaderArgs, extraArgs);
761TestCore("showdata", path.Path, "loader=text{col=A:I4:0-1 col=B:I4:~ header+ sep=comma}", "");
793TestCore("train", pathData, "loader=text{header+}", "tr=ap{shuf-}");
804TestCore("train", pathData, "", "tr=ap{shuf-}");
815TestCore("train", pathData, "loader=Text{col=Label:0 col=A:1 col=B:2 col=Rest:3-*}", "xf=Concat{col=Features:A,Rest,B} tr=ap{shuf-}");
826TestCore("train", pathData, "loader=Text{col=Label:0 col=A:1 col=B:2 col=C:3 col=D:4 col=E:5 col=F:6 col=Rest:7-*}",
838TestCore("train", pathData, "loader=Text{col=Features:1-*}", "tr=OneClassSvm{}");
849TestCore("train", pathData, "loader=TextLoader{col=Label:R4:0 col=Features:R4:1-2 header=+}", "tr=LogisticRegression {l2=0 l1=1000}");
866TestCore("train", pathData, "loader=TextLoader{col={name=Label src=0} col={name=Features src=1-4}}",
889TestCore("cv", pathData, loaderArgs, extraArgs, summaryFile.Arg("sf"), prFile.Arg("eval", "pr"), metricsFile.Arg("dout"));
903TestCore("cv", pathData, loaderArgs, extraArgs);
928TestCore("cv", pathData, loaderArgs, extraArgs, metricsFile.Arg("dout"));
949TestCore("cv", pathData, loaderArgs, extraArgs + " collate-", metricsFile.ArgOnly("dout"), f1.ArgNone(), f2.ArgNone());
953TestCore("cv", pathData, loaderArgs, extraArgs, metricsFile.Arg("dout"));
973TestCore("cv", pathData, loaderArgs, extraArgs);
1023TestCore("traintest", trainData, loaderArgs, extraArgs, metricsFile.Arg("dout"));
1039TestCore("savedata", trainData, loaderArgs, "saver=trans",
1043TestCore("savedata", testData, "", "saver=trans",
1055TestCore("traintest", transTrainData.Path, "loader=trans", extraArgs,
1074TestCore("traintest", trainData, loaderArgs, extraArgs, metricsFile.Arg("dout"));
1088TestCore("train", trainData, loaderArgs, extraArgs);
1104TestCore("train", trainData, loaderArgs, extraArgs);
1166TestCore("train", trainData, loaderArgs, extraArgs);
1185TestCore("train", trainData, loaderArgs, extraArgs);
1202TestCore("train", trainData, loaderArgs, extraArgs);
1221TestCore("train", pathTrain, loaderCmdline, trainArgs);
1266TestCore("train", trainData, loaderArgs, extraArgs);
1292TestCore("traintest", trainData, loaderArgs, extraArgs, metricsFile.Arg("dout"));
1295TestCore("traintest", trainData, loaderArgs + " xf=Expr{col=Lab expr={x=>-x}}", extraArgs, metricsFile.Arg("dout"));
1314TestCore("traintest", dataPath.Path, loaderArgs, extraArgs, metricsFile.Arg("dout"));
1328TestCore("train", trainData,
1359TestCore("train", pathData, "loader=text{header+ col=Label:0 col=F:1-9} xf[norm]=ZScore{col=F}", "feat=F tr=ap{shuf-}");
1394TestCore("train", pathData, "loader=Text{sep=comma col=Features:0-3 col=Label:TX:4}" +
1413TestCore("train", pathData, "", "seed=1 norm=Warn");
1417TestCore("traintest", pathData, "", extraTrainTest);
1420TestCore("cv", pathData, null, "seed=3 norm=Warn threads-");
1431TestCore("train", pathData, "loader=text{header+ col=L:0 col=F:1-9}", "lab=L feat=F tr=lr{t-}");
1443TestCore("savedata", scorePath.Path, "loader=binary xf=Copy{col=PredictedLabel1:PredictedLabel col=Score1:Score}",
1450TestCore("savedata", scorePath2.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1455TestCore("evaluate", scorePath2.Path, null, "lab=L");
1462TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, evalExtraArgs);
1481TestCore("evaluate", scorePath.Path, null, "evaluator=Binary{threshold=0.9 useRawScore-} lab=L");
1485TestCore("evaluate", scorePath.Path, null, "evaluator=Binary{threshold=2} lab=L");
1495TestCore("evaluate", scoreCustomCols.Path, null, "evaluator=Binary{score=Score1 prob=Probability1} lab=L");
1507TestCore("train", pathData, "loader=TextLoader{header+ col=Label:TX:0 col=Features:1-4} xf=Term{col=Label}",
1521TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1526TestCore("evaluate", scorePath.Path, "", "");
1533TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, null, metricsPath.Arg("dout"));
1543TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs2, null, metricsPath.Arg("dout"));
1555TestCore("train", pathData, "loader=TextLoader xf[norm]=MinMax{col=Features}", "tr=ap{shuf=-} cali={}");
1568TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1574TestCore("evaluate", scorePath.Path, "", "", metricPath1.Arg("dout"));
1582TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, evalExtraArgs, metricPath2.Arg("dout"));
1599TestCore("train", pathData, "loader=text", "lab=Label feat=Features tr=FastTreeRegression{dt+}");
1612TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1617TestCore("evaluate", scorePath.Path, "", "");
1624TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, evalExtraArgs);
1639TestCore("train", pathData, "loader=text", "lab=Label feat=Features tr=Sdcar{l2=0.01 l1=0 iter=10 checkFreq=-1 nt=1} seed=1");
1692TestCore("train", pathData, loaderArgs, "tr=AP{shuf-} seed=1");
1710TestCore("train", pathData, "loader=text", "lab=Label feat=Features tr=Sdcar{l2=0.01 l1=0 iter=10 checkFreq=-1 nt=1} seed=1");
1723TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1728TestCore("evaluate", scorePath.Path, "", "");
1735TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, evalExtraArgs);
1751TestCore("train", pathData, "loader=Text{header+}", "lab=Label feat=Features tr=FastForestRegression{dt+}");
1764TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1770TestCore("evaluate", scorePath.Path, "", "", metricsFile1.Arg("dout"));
1816TestCore("train", pathTrain, "loader=Text{sep=space col=Features:1-*}", args);
1828TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1844TestCore("train", pathTrain, trainLoaderArgs, args);
1857TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1862TestCore("evaluate", scorePath.Path, "", "");
1870TestCore("evaluate", scorePathTxt.Path, evalLoaderArgs, evalExtraArgs, metricsPath.Arg("dout"));
1891RunMTAThread(() => TestCore("train", dataPath, TestDatasets.adultRanking.loaderSettings, extraArgs));
1904TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1912TestCore("evaluate", scorePath.Path, "", null, summaryFile1.Arg("sf"), metricsFile1.Arg("dout"));
1920TestCore("evaluate", scorePathTxt.Path, "loader=Text", "eval=Ranking{score=Score}",
1930RunMTAThread(() => TestCore("traintest", dataPath, TestDatasets.adultRanking.loaderSettings, trainTestExtra));
1944RunMTAThread(() => TestCore("traintest", pathTrain, loaderCmdline, extraArgs));
1958TestCore("Train", pathTrain, "loader=Text{col=Label:0 col=Fx:1-*} xf=Concat{col=Features:Fx}", extraArgs);
1973TestCore("train", pathTrain, loaderCmdline, trainArgs);
1986TestCore("savedata", scorePath.Path, "loader=binary", "saver=text", scorePathTxt.Arg("dout"));
1992TestCore("traintest", pathTrain, loaderCmdline, trainTestExtra, metricsFile.Arg("dout"));
1998TestCore("traintest", pathTrain, loaderCmdlineNoLabel, trainTestExtra, metricsFile.Arg("dout"));
2151TestCore("savedata", idvPath, "loader=binary", "saver=text", textOutputPath.Arg("dout"));
2153TestCore("savedata", idvPath, "loader=binary", "saver=binary", intermediateData.ArgOnly("dout"));
2155TestCore("savedata", intermediateData.Path, "loader=binary", "saver=text", textOutputPath.Arg("dout"));
2168TestCore("showdata", dataPath, loaderArgs, extraArgs);
2172TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
2185TestCore("showdata", dataPath, loaderArgs, extraArgs);
2189TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
2205TestCore("showdata", dataPath, loaderArgs, extraArgs);
2209TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
2223TestCore("showdata", dataPath, loaderArgs, extraArgs);
2227TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
2253TestCore("showdata", path.Path, "loader=svm" + chooseXf, "");