434 references to TestDatasets
Microsoft.ML.AutoML.Tests (2)
AutoFitTests.cs (2)
524var trainDataView = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.trainFilename))); 525var testDataView = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.testFilename)));
Microsoft.ML.Core.Tests (40)
UnitTests\TestEntryPoints.cs (40)
45var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 65var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 557var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 575var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2283var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2334var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2384var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2429var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2645var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2693var dataPath = GetDataPath(TestDatasets.generatedRegressionDatasetmacro.trainFilename); 2699dataPath, warningsPath, overallMetricsPath, instanceMetricsPath, loader: TestDatasets.generatedRegressionDatasetmacro.loaderSettings); 2815TestEntryPointRoutine(TestDatasets.generatedRegressionDatasetmacro.trainFilename, "Trainers.StochasticDualCoordinateAscentRegressor", loader: TestDatasets.generatedRegressionDatasetmacro.loaderSettings); 2833TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Label:0 col=Features:1-9", 2932TestEntryPointRoutine(TestDatasets.generatedRegressionDatasetmacro.trainFilename, "Trainers.EnsembleRegression", loader: TestDatasets.generatedRegressionDatasetmacro.loaderSettings); 2950TestEntryPointRoutine(TestDatasets.generatedRegressionDatasetmacro.trainFilename, "Trainers.PoissonRegressor", loader: TestDatasets.generatedRegressionDatasetmacro.loaderSettings); 2956TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Label:R4:0 col=Features:R4:1-9", 2970TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=LT:TX:0 col=LB:BL:0 col=FT:TX:1-9 col=LN:0 col=FN:1-9 col=Key:U2[0-9]:2", 3016TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=G1:TX:0 col=G2:R4:0 col=G3:U4[0-100]:1 col=V1:R4:2 col=V2:TX:3 col=V3:U2[0-10]:4 col=V4:I4:5", 3033TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Features:R4:1-9 header+", 3043TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Features:R4:1-9 header+", 3058TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=FV1:2-3 col=FV2:3-4 col=FV3:4-5 col=FV4:7-9 col=Label:0", 3106TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Label:0", 3136TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Filter:R4:3", 3158TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Filter:R4:3", 3509var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 3604var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 3709var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 3870var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 4061var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 4151var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 4651TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Input:R4:1", 4668TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Input:R4:1", 4684TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Input:R4:1", 4716var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 4728TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Text:TX:1-9 col=OneText:TX:1 col=Label:0", 4758var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 5017var dataPath = GetDataPath(TestDatasets.generatedRegressionDatasetmacro.trainFilename);
Microsoft.ML.IntegrationTests (139)
DataTransformation.cs (15)
33TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 34hasHeader: TestDatasets.iris.fileHasHeader, 35separatorChar: TestDatasets.iris.fileSeparator); 86TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 87hasHeader: TestDatasets.iris.fileHasHeader, 88separatorChar: TestDatasets.iris.fileSeparator); 132var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 133hasHeader: TestDatasets.Sentiment.fileHasHeader, 134separatorChar: TestDatasets.Sentiment.fileSeparator); 170TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 171hasHeader: TestDatasets.iris.fileHasHeader, 172separatorChar: TestDatasets.iris.fileSeparator); 197TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 198hasHeader: TestDatasets.iris.fileHasHeader, 199separatorChar: TestDatasets.iris.fileSeparator);
Debugging.cs (3)
104var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 133var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 171var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
Evaluation.cs (28)
31TestDatasets.mnistOneClass.fileHasHeader, TestDatasets.mnistOneClass.fileSeparator) 32.Load(TestCommon.GetDataPath(DataDir, TestDatasets.mnistOneClass.trainFilename)); 34TestDatasets.mnistOneClass.fileHasHeader, TestDatasets.mnistOneClass.fileSeparator) 35.Load(TestCommon.GetDataPath(DataDir, TestDatasets.mnistOneClass.testFilename)); 60var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 61hasHeader: TestDatasets.Sentiment.fileHasHeader, 62separatorChar: TestDatasets.Sentiment.fileSeparator); 89var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 90hasHeader: TestDatasets.Sentiment.fileHasHeader, 91separatorChar: TestDatasets.Sentiment.fileSeparator); 118var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 119hasHeader: TestDatasets.iris.fileHasHeader, 120separatorChar: TestDatasets.iris.fileSeparator); 146var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 147hasHeader: TestDatasets.iris.fileHasHeader, 148separatorChar: TestDatasets.iris.fileSeparator); 171TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 172hasHeader: TestDatasets.iris.fileHasHeader, 173separatorChar: TestDatasets.iris.fileSeparator); 232TestCommon.GetDataPath(DataDir, TestDatasets.trivialMatrixFactorization.trainFilename), 233TestDatasets.trivialMatrixFactorization.fileHasHeader, 234TestDatasets.trivialMatrixFactorization.fileSeparator); 268var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 295var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 296hasHeader: TestDatasets.Sentiment.fileHasHeader, 297separatorChar: TestDatasets.Sentiment.fileSeparator);
Explainability.cs (8)
35var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 93var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 117var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 144var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 171var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 208var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 245var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 283var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
IntrospectiveTraining.cs (26)
35var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 75var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 76hasHeader: TestDatasets.Sentiment.fileHasHeader, 77separatorChar: TestDatasets.Sentiment.fileSeparator, 78allowQuoting: TestDatasets.Sentiment.allowQuoting); 138TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 139hasHeader: TestDatasets.iris.fileHasHeader, 140separatorChar: TestDatasets.iris.fileSeparator); 178var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 179hasHeader: TestDatasets.Sentiment.fileHasHeader, 180separatorChar: TestDatasets.Sentiment.fileSeparator, 181allowQuoting: TestDatasets.Sentiment.allowQuoting); 219var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 220hasHeader: TestDatasets.Sentiment.fileHasHeader, 221separatorChar: TestDatasets.Sentiment.fileSeparator, 222allowQuoting: TestDatasets.Sentiment.allowQuoting); 259TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 260hasHeader: TestDatasets.iris.fileHasHeader, 261separatorChar: TestDatasets.iris.fileSeparator); 289var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 332var data = mlContext.Data.LoadFromTextFile<Adult>(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename), 333hasHeader: TestDatasets.adult.fileHasHeader, 334separatorChar: TestDatasets.adult.fileSeparator); 389var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 390hasHeader: TestDatasets.iris.fileHasHeader, 391separatorChar: TestDatasets.iris.fileSeparator);
ModelFiles.cs (9)
45var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 92var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 134var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 267var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 324var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 357var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 386var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 424var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename)); 457var file = new MultiFileSource(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename));
ONNX.cs (3)
37var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 87var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 139var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
Prediction.cs (3)
42HasHeader = TestDatasets.Sentiment.fileHasHeader, 43Separators = new[] { TestDatasets.Sentiment.fileSeparator } 46var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
SchemaDefinitionTests.cs (2)
33var fileName = TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename); 63var fileName = TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename);
Training.cs (39)
32var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 33separatorChar: TestDatasets.Sentiment.fileSeparator, 34hasHeader: TestDatasets.Sentiment.fileHasHeader, 35allowQuoting: TestDatasets.Sentiment.allowQuoting); 86var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 87separatorChar: TestDatasets.Sentiment.fileSeparator, 88hasHeader: TestDatasets.Sentiment.fileHasHeader, 89allowQuoting: TestDatasets.Sentiment.allowQuoting); 130var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 131separatorChar: TestDatasets.Sentiment.fileSeparator, 132hasHeader: TestDatasets.Sentiment.fileHasHeader, 133allowQuoting: TestDatasets.Sentiment.allowQuoting); 174var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 175separatorChar: TestDatasets.Sentiment.fileSeparator, 176hasHeader: TestDatasets.Sentiment.fileHasHeader, 177allowQuoting: TestDatasets.Sentiment.allowQuoting); 218var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 219separatorChar: TestDatasets.Sentiment.fileSeparator, 220hasHeader: TestDatasets.Sentiment.fileHasHeader, 221allowQuoting: TestDatasets.Sentiment.allowQuoting); 261var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 262hasHeader: TestDatasets.iris.fileHasHeader, 263separatorChar: TestDatasets.iris.fileSeparator); 312var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), 313separatorChar: TestDatasets.housing.fileSeparator, 314hasHeader: TestDatasets.housing.fileHasHeader); 356var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), 357separatorChar: TestDatasets.housing.fileSeparator, 358hasHeader: TestDatasets.housing.fileHasHeader); 400var data = mlContext.Data.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename), 401separatorChar: TestDatasets.Sentiment.fileSeparator, 402hasHeader: TestDatasets.Sentiment.fileHasHeader, 403allowQuoting: TestDatasets.Sentiment.allowQuoting); 448var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 449hasHeader: TestDatasets.iris.fileHasHeader, 450separatorChar: TestDatasets.iris.fileSeparator); 479var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), 480hasHeader: TestDatasets.iris.fileHasHeader, 481separatorChar: TestDatasets.iris.fileSeparator);
Validation.cs (3)
38var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 104var data = mlContext.Data.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true); 153var data = mlContext.Data.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), hasHeader: true);
Microsoft.ML.PerformanceTests (16)
Numeric\Ranking.cs (10)
25_mslrWeb10kValidate = GetBenchmarkDataPathAndEnsureData(TestDatasets.MSLRWeb.validFilename, TestDatasets.MSLRWeb.path); 26_mslrWeb10kTrain = GetBenchmarkDataPathAndEnsureData(TestDatasets.MSLRWeb.trainFilename, TestDatasets.MSLRWeb.path); 75_mslrWeb10kTest = GetBenchmarkDataPathAndEnsureData(TestDatasets.MSLRWeb.testFilename, TestDatasets.MSLRWeb.path); 76_mslrWeb10kValidate = GetBenchmarkDataPathAndEnsureData(TestDatasets.MSLRWeb.validFilename, TestDatasets.MSLRWeb.path); 77_mslrWeb10kTrain = GetBenchmarkDataPathAndEnsureData(TestDatasets.MSLRWeb.trainFilename, TestDatasets.MSLRWeb.path);
RffTransform.cs (2)
22_dataPathDigits = GetBenchmarkDataPathAndEnsureData(TestDatasets.Digits.trainFilename, TestDatasets.Digits.path);
Text\MultiClassClassification.cs (4)
23_dataPathWiki = GetBenchmarkDataPathAndEnsureData(TestDatasets.WikiDetox.trainFilename, TestDatasets.WikiDetox.path); 100_dataPathWiki = GetBenchmarkDataPathAndEnsureData(TestDatasets.WikiDetox.trainFilename, TestDatasets.WikiDetox.path);
Microsoft.ML.Predictor.Tests (95)
TestConcurrency.cs (2)
24TestParallelRun("CVWithLR", "CV", "LR {nt=2}", TestDatasets.breastCancer.trainFilename); 31var bc = TestDatasets.breastCancer;
TestIniModels.cs (2)
528}).Load(GetDataPath(TestDatasets.breastCancer.trainFilename)); 567}).Load(GetDataPath(TestDatasets.breastCancer.trainFilename));
TestParallelFasttreeInterface.cs (1)
181var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
TestPredictors.cs (90)
56TestDatasets.breastCancer, 64TestDatasets.breastCancer, 65TestDatasets.iris 74return new[] { TestDatasets.housing }; 82return new[] { TestDatasets.rankingText }; 91TestDatasets.breastCancerBoolLabel, 92TestDatasets.breastCancerPipeMissing, 93TestDatasets.breastCancerPipeMissingFilter, 94TestDatasets.msm 103return new[] { TestDatasets.breastCancerWeighted }; 126RunAllTests(predictors, new[] { TestDatasets.breastCancerBoolLabel }); 139var dataset = TestDatasets.msm.Clone(); 155RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.iris, digitsOfPrecision: 3); 169RunOneAllTests(TestLearners.multiclassLogisticRegressionNonNegative, TestDatasets.iris, digitsOfPrecision: 3); 200RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.irisTreeFeaturized, digitsOfPrecision: 4); 201RunOneAllTests(TestLearners.multiclassLogisticRegression, TestDatasets.irisTreeFeaturizedPermuted, digitsOfPrecision: 4); 224Run_CV(predictor, TestDatasets.mnistTiny28, extraTag: "DifferentClassCounts"); 232RunOneAllTests(TestLearners.Ova, TestDatasets.iris, digitsOfPrecision: 6); 233RunOneAllTests(TestLearners.OvaWithFastForest, TestDatasets.iris, digitsOfPrecision: 6); 234RunOneAllTests(TestLearners.Pkpd, TestDatasets.iris, digitsOfPrecision: 6); 245var datasets = new[] { TestDatasets.adult, TestDatasets.mnistTiny28 }; 276RunOneAllTests(TestLearners.logisticRegression, TestDatasets.breastCancer, summary: true, digitsOfPrecision: 3); 288RunOneAllTests(TestLearners.symSGD, TestDatasets.breastCancer, summary: true, digitsOfPrecision: 4); 297var binaryClassificationDatasets = new[] { TestDatasets.breastCancer }; 323var binaryClassificationDatasets = new[] { TestDatasets.breastCancer }; 371var data = TestDatasets.breastCancer; 430new[] { TestDatasets.breastCancerDifferentlyWeighted }); 449new[] { TestDatasets.housingDifferentlyWeightedRep }); 463var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 479var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 507Run_Test(TestLearners.LightGBMClassifier, TestDatasets.breastCancerPipeWithoutMamlExtraSettings, previousBaselineModelPath); 516var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 527var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 541var multiClassificationDatasets = new[] { TestDatasets.irisLoader }; 555var multiClassificationDatasets = new[] { TestDatasets.irisLoaderU404 }; 569var regDatasets = new[] { TestDatasets.generatedRegressionDataset }; 583var regDatasets = new[] { TestDatasets.generatedRegressionDataset }; 597var regDatasets = new[] { TestDatasets.generatedRegressionDataset }; 618var rankDatasets = new[] { TestDatasets.MQ2008 }; 626var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 756var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 802var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 980var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.adultOnlyCat, TestDatasets.adult }; 999var regressionDatasets = new List<TestDataset> { TestDatasets.autosSample }; 1019var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerGroupId }; 1037var binaryClassificationDatasets = new List<TestDataset> { TestDatasets.breastCancerPipe }; 1133Run_TrainTest(TestLearners.FastTreeUnderbuiltRegressor, TestDatasets.housing, null, "Underbuilt"); 1201Run_TrainTest(TestLearners.Ols, TestDatasets.generatedRegressionDataset, digitsOfPrecision: 4); 1214RunAllTests(regressionPredictors, new[] { TestDatasets.generatedRegressionDataset }); 1558var datasets = new[] { TestDatasets.childrenPoisson, TestDatasets.autosSample }; 1574var datasets = new[] { TestDatasets.childrenPoisson, TestDatasets.autosSample }; 1589new List<TestDataset>() { TestDatasets.reutersMaxDim }); 1598return new[] { TestDatasets.breastCancer }; 1672var data = TestDatasets.breastCancerWeighted; 1723RunOneAllTests(TestLearners.fastRankRegressionWeighted, TestDatasets.housingWeightedRep); 1738RunOneAllTests(TestLearners.fastRankRankingWeighted, TestDatasets.rankingWeighted); 1757RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.breastCancer, null, "InputMismatch"); 1767RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.breastCancer, null, "OutputMismatch"); 1778RunOneTrain(TestLearners.NnBinCustom(path), TestDatasets.iris, null, "NonBinData"); 1787Run_TrainTest(TestLearners.PCAAnomalyDefault, TestDatasets.mnistOneClass, extraSettings: new[] { "loader=text{sparse+}" }, digitsOfPrecision: 4); 1788Run_TrainTest(TestLearners.PCAAnomalyNoNorm, TestDatasets.mnistOneClass, extraSettings: new[] { "loader=text{sparse+}" }, digitsOfPrecision: 4); 1806Run_TrainTest(TestLearners.OneClassSvmLinear, TestDatasets.mnistOneClass, extraTag: "LinearKernel"); 1807Run_TrainTest(TestLearners.OneClassSvmPoly, TestDatasets.mnistOneClass, extraTag: "PolynomialKernel"); 1808Run_TrainTest(TestLearners.OneClassSvmRbf, TestDatasets.mnistOneClass, extraTag: "RbfKernel"); 1809Run_TrainTest(TestLearners.OneClassSvmSigmoid, TestDatasets.mnistOneClass, extraTag: "SigmoidKernel"); 1821Run_TrainTest(TestLearners.OneClassSvmLinear, TestDatasets.breastCancerOneClass, extraTag: "LinearKernel"); 1822Run_TrainTest(TestLearners.OneClassSvmPoly, TestDatasets.breastCancerOneClass, extraTag: "PolynomialKernel"); 1823Run_TrainTest(TestLearners.OneClassSvmRbf, TestDatasets.breastCancerOneClass, extraTag: "RbfKernel"); 1824Run_TrainTest(TestLearners.OneClassSvmSigmoid, TestDatasets.breastCancerOneClass, extraTag: "SigmoidKernel"); 2195RunOneAllTests(TestLearners.MulticlassNaiveBayesClassifier, TestDatasets.breastCancerPipe); 2203Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2212RunOneAllTests(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption: NumberParseOption.UseSingle); 2220Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption: NumberParseOption.UseSingle); 2228Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption: NumberParseOption.UseSingle); 2236Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2244Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption: NumberParseOption.UseSingle); 2252Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2260Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption: NumberParseOption.UseSingle); 2268Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2276Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 4, parseOption: NumberParseOption.UseSingle); 2284Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2292Run_TrainTest(pa, TestDatasets.breastCancer, new[] { "loader=Text{col=Label:BL:0 col=Features:R4:1-9}" }, digitsOfPrecision: 5, parseOption: NumberParseOption.UseSingle); 2300Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2308Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 6, parseOption: NumberParseOption.UseSingle); 2316Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 3, parseOption: NumberParseOption.UseSingle); 2324Run_TrainTest(pa, TestDatasets.iris, digitsOfPrecision: 4, parseOption: NumberParseOption.UseSingle);
Microsoft.ML.TensorFlow.Tests (8)
TensorflowTests.cs (8)
665var trainData = reader.Load(GetDataPath(TestDatasets.mnistTiny28.trainFilename)); 666var testData = reader.Load(GetDataPath(TestDatasets.mnistOneClass.testFilename)); 706var trainData = reader.Load(GetDataPath(TestDatasets.mnistTiny28.trainFilename)); 707var testData = reader.Load(GetDataPath(TestDatasets.mnistOneClass.testFilename)); 796var trainData = reader.Load(GetDataPath(TestDatasets.mnistTiny28.trainFilename)); 797var testData = reader.Load(GetDataPath(TestDatasets.mnistOneClass.testFilename)); 889var trainData = reader.Load(GetDataPath(TestDatasets.mnistTiny28.trainFilename)); 890var testData = reader.Load(GetDataPath(TestDatasets.mnistOneClass.testFilename));
Microsoft.ML.TestFramework (18)
DataPipe\TestDataPipe.cs (1)
1495var inputData = GetDataPath(TestDatasets.breastCancer.trainFilename);
DataPipe\TestDataPipeBase.cs (1)
317pathData = GetDataPath(TestDatasets.breastCancer.trainFilename);
TestCommandBase.cs (16)
990var dataPath = GetDataPath(TestDatasets.adult.testFilename); 993var trainArgs = $"Train tr=SDCA {TestDatasets.adult.loaderSettings} {TestDatasets.adult.mamlExtraSettings[0]} {TestDatasets.adult.mamlExtraSettings[1]}" + 1412string pathData = GetDataPath(TestDatasets.breastCancer.trainFilename); 1553string pathData = GetDataPath(TestDatasets.breastCancer.trainFilename); 1811TestDataset dataset = TestDatasets.azureCounterUnlabeled; 1838TestDataset dataset = TestDatasets.mnistOneClass; 1888var dataPath = GetDataPath(TestDatasets.adultRanking.trainFilename); 1891RunMTAThread(() => TestCore("train", dataPath, TestDatasets.adultRanking.loaderSettings, extraArgs)); 1930RunMTAThread(() => TestCore("traintest", dataPath, TestDatasets.adultRanking.loaderSettings, trainTestExtra)); 1953TestDataset dataset = TestDatasets.mnistTiny28; 2009string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2025string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2094string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2124string data = GetDataPath(TestDatasets.breastCancer.trainFilename);
Microsoft.ML.Tests (116)
AnomalyDetectionTests.cs (3)
28var trainPath = GetDataPath(TestDatasets.mnistOneClass.trainFilename); 29var testPath = GetDataPath(TestDatasets.mnistOneClass.testFilename); 46var trainPath = GetDataPath(TestDatasets.mnistOneClass.trainFilename);
DatabaseLoaderTests.cs (4)
281GetMSSQLConnectionString(TestDatasets.irisDb.name), 282String.Format(command, $@"""{TestDatasets.irisDb.trainFilename}"""), 287GetSQLiteConnectionString(TestDatasets.irisDbSQLite.name), 288String.Format(command, TestDatasets.irisDbSQLite.trainFilename),
OnnxConversionTest.cs (22)
69var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 147string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 179string dataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 220string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 261string dataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 436string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 565var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 596var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 623string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 767string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 787string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 964var dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1002string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1601string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1646string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1700var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1718var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1845string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1884string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1931string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1973string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2023string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
PermutationFeatureImportanceTests.cs (1)
487var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
208=> TrainRegression(GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename), GetDataPath(TestDatasets.generatedRegressionDataset.testFilename),
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (2)
28var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 42var testLoader = ml.Data.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',', hasHeader: true);
Scenarios\Api\Estimators\Extensibility.cs (3)
27var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 30var data = ml.Data.CreateTextLoader(TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',') 51var testLoader = ml.Data.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',');
Scenarios\Api\Estimators\MultithreadedPrediction.cs (2)
28var data = ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true); 44ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.testFilename), hasHeader: true), false);
Scenarios\Api\Estimators\PredictAndMetadata.cs (4)
26var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 39var testLoader = ml.Data.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',', hasHeader: true); 77var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 109var dataPath2 = GetDataPath(TestDatasets.iris.trainFilename);
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (4)
26var data = ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true); 42ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.testFilename), hasHeader: true), false); 63var data = ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true); 81ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.testFilename), hasHeader: true), false);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
25var data = ml.Data.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true);
Scenarios\Api\TestApi.cs (2)
174var dataFile = GetDataPath(TestDatasets.breastCancer.trainFilename); 268var dataFile = GetDataPath(TestDatasets.breastCancer.trainFilename);
Scenarios\GetColumnTests.cs (2)
27var path = GetDataPath(TestDatasets.breastCancer.trainFilename); 69var path = GetDataPath(TestDatasets.breastCancer.trainFilename);
Scenarios\IrisPlantClassificationTests.cs (1)
40string dataPath = GetDataPath(TestDatasets.iris.trainFilename);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
38string dataPath = GetDataPath(TestDatasets.iris.trainFilename);
TextLoaderTests.cs (7)
610var fileName = GetDataPath(TestDatasets.adult.trainFilename); 732var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 815string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 834string irisPath = GetDataPath(TestDatasets.irisData.trainFilename); 1182var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 1242string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1254string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
TrainerEstimators\FAFMEstimator.cs (1)
69.Load(GetDataPath(TestDatasets.breastCancer.trainFilename));
TrainerEstimators\MatrixFactorizationTests.cs (4)
33.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.trainFilename))); 37.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.testFilename))); 71var data = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.trainFilename))); 107var testData = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.testFilename)));
TrainerEstimators\MetalinearEstimators.cs (2)
80Columns = TestDatasets.irisData.GetLoaderColumns(), 85var data = loader.Load(GetDataPath(TestDatasets.irisData.trainFilename));
TrainerEstimators\OnlineLinearTests.cs (1)
18var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
TrainerEstimators\PriorRandomTests.cs (1)
27}).Load(GetDataPath(TestDatasets.breastCancer.trainFilename));
TrainerEstimators\SdcaTests.cs (1)
19var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
TrainerEstimators\TrainerEstimators.cs (5)
40var data = reader.Load(GetDataPath(TestDatasets.mnistOneClass.trainFilename)); 70var data = reader.Load(GetDataPath(TestDatasets.mnistTiny28.trainFilename)); 203}).Load(GetDataPath(TestDatasets.Sentiment.trainFilename)); 237}).Load(GetDataPath(TestDatasets.adultRanking.trainFilename)); 259}).Load(GetDataPath(TestDatasets.generatedRegressionDatasetmacro.trainFilename));
Transformers\CategoricalHashTests.cs (1)
80string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\CategoricalTests.cs (1)
156string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\CountTargetEncodingTests.cs (5)
25string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 41var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 56var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 76var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 161var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\CustomMappingTests.cs (2)
168string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 193string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\FeatureSelectionTests.cs (6)
64string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 105string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 147string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 169string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 207string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 229string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\HashTests.cs (1)
356string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\KeyToBinaryVectorEstimatorTest.cs (1)
62string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\KeyToValueTests.cs (1)
67string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\KeyToVectorEstimatorTests.cs (1)
72string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\NAIndicatorTests.cs (1)
94string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\NAReplaceTests.cs (1)
124string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\NormalizerTests.cs (13)
35string dataPath = GetDataPath(TestDatasets.iris.trainFilename); 469string dataPath = GetDataPath(TestDatasets.iris.trainFilename); 573string dataPath = GetDataPath(TestDatasets.iris.trainFilename); 631string dataPath = GetDataPath(TestDatasets.iris.trainFilename); 655string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 689string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 731string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 753string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 792string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 813string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 852string dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 873var dataFile = GetDataPath(TestDatasets.breastCancer.trainFilename); 989string dataPath = GetDataPath(TestDatasets.iris.trainFilename);
Transformers\RffTests.cs (1)
66string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\TextFeaturizerTests.cs (3)
762ML.Data.LoadFromTextFile(GetDataPath(TestDatasets.Sentiment.testFilename), 763TestDatasets.Sentiment.GetLoaderColumns(), hasHeader: true), false); 776string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\WordEmbeddingsTests.cs (2)
28var dataPath = GetDataPath(TestDatasets.Sentiment.trainFilename); 63var dataPath = GetDataPath(TestDatasets.Sentiment.trainFilename);