433 references to GetDataPath
Microsoft.ML.AutoML.Tests (3)
AutoFitTests.cs (2)
524var trainDataView = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.trainFilename))); 525var testDataView = reader.Load(new MultiFileSource(GetDataPath(TestDatasets.trivialMatrixFactorization.testFilename)));
ColumnInferenceTests.cs (1)
218var dataPath = GetDataPath("multiline.csv");
Microsoft.ML.Core.Tests (68)
UnitTests\TestEntryPoints.cs (68)
45var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 65var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 557var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 575var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 620var inputDataPath = GetDataPath("adult.tiny.with-schema.txt"); 768var inputDataPath = GetDataPath("adult.tiny.with-schema.txt"); 912var inputData = GetDataPath("adult.tiny.with-schema.txt"); 1073var inputDataPath = GetDataPath("adult.tiny.with-schema.txt"); 1214var inputData = GetDataPath("adult.tiny.with-schema.txt"); 1355var dataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 1768var dataPath = GetDataPath("lm.sample.txt"); 1985var dataPath = GetDataPath("iris.txt"); 2128var dataPath = GetDataPath("breast-cancer-withheader.txt"); 2283var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2334var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2384var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2429var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2475var dataPath = GetDataPath("iris.data"); 2645var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 2669var dataPath = GetDataPath("iris.txt"); 2693var dataPath = GetDataPath(TestDatasets.generatedRegressionDatasetmacro.trainFilename); 2714var dataPath = GetDataPath(@"adult.tiny.with-schema.txt"); 2797TestEntryPointRoutine(GetDataPath(@"iris.txt"), "Trainers.LightGbmClassifier"); 2833TestEntryPointPipelineRoutine(GetDataPath(TestDatasets.breastCancer.trainFilename), "col=Label:0 col=Features:1-9", 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", 3178var dataPath = GetDataPath(dataFile); 3264var dataPath = GetDataPath(dataFile); 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); 4230var dataPath = GetDataPath("breast-cancer-withheader.txt"); 4304var dataPath = GetDataPath("MNIST.Train.0-class.tiny.txt"); 4348var dataPath = GetDataPath("iris.data"); 4442var dataPath = GetDataPath("adult.tiny.with-schema.txt"); 4560TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS1.csv")), "sep=, col=Features:R4:1 header=+", 4589TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "real_1.csv")), "sep=, col=Features:R4:1 header=+", 4613TestEntryPointPipelineRoutine(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS2.csv")), "sep=, col=Features:R4:1 header=+", 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); 4793var dataPath = GetDataPath("adult.tiny.with-schema.txt"); 4855var dataPath = GetDataPath("adult.tiny.with-schema.txt"); 5017var dataPath = GetDataPath(TestDatasets.generatedRegressionDatasetmacro.trainFilename); 5247var dataPath = GetDataPath(@"Train-Tiny-28x28.txt"); 5446var dataPath = GetDataPath(@"Train-Tiny-28x28.txt"); 5608var dataPath = GetDataPath(@"breast-cancer.txt"); 5813string dataPath = GetDataPath(@"adult.tiny.with-schema.txt"); 6139var dataPath = GetDataPath(@"iris.txt"); 6304var dataPath = GetDataPath(@"iris.txt"); 6477TestEntryPointPipelineRoutine(GetDataPath("Train-Tiny-28x28.txt"), "col=Label:R4:0 col=Placeholder:R4:1-784", 6490var dataPath = GetDataPath("Train-Tiny-28x28.txt"); 6585var modelPath = GetDataPath($"backcompat/ep_model{i}.zip"); 6597var dataPath = GetDataPath(@"breast-cancer.txt"); 6675var dataPath = GetDataPath(@"adult.tiny.with-schema.txt");
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (2)
101var dataFile = GetDataPath("images/images.tsv"); 211var dataFile = GetDataPath("images/images.tsv");
OnnxTransformTests.cs (3)
246var dataFile = GetDataPath("images/images.tsv"); 297var dataFile = GetDataPath("images/images.tsv"); 1126var dataFile = GetDataPath("images/images.tsv");
Microsoft.ML.Predictor.Tests (10)
TestConcurrency.cs (2)
37string cmd = command + " seed=1 tr=" + predictorWithArgs + " data=" + GetDataPath(trainFile); 39cmd += " test=" + GetDataPath(testFile);
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 (5)
506string previousBaselineModelPath = GetDataPath("LightGBM-Train-breast-cancer-model.zip"); 626var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 647var dataPath = GetDataPath("adult.tiny.with-schema.txt"); 756var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 802var dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Microsoft.ML.TensorFlow.Tests (28)
TensorFlowEstimatorTests.cs (3)
153var dataFile = GetDataPath("images/images.tsv"); 195var dataFile = GetDataPath("images/images.tsv"); 246var dataFile = GetDataPath("images/images.tsv");
TensorflowTests.cs (25)
136var dataFile = GetDataPath("images/images.tsv"); 167ImagePath = GetDataPath("images/banana.jpg") 175ImagePath = GetDataPath("images/hotdog.jpg") 503var dataFile = GetDataPath("images/images.tsv"); 539var dataFile = GetDataPath("images/images.tsv"); 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)); 1009var dataFile = GetDataPath("images/imagesmixedpixelformat.tsv"); 1068var dataFile = GetDataPath("images/images.tsv"); 1111var dataFile = GetDataPath("images/images.tsv"); 1146var dataFile = GetDataPath("images/images.tsv"); 1178predictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/banana.jpg") }), 1179predictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/hotdog.jpg") }), 1180predictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/tomato.jpg") }) 1199testPredictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/banana.jpg") }), 1200testPredictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/hotdog.jpg") }), 1201testPredictFunction.Predict(new CifarData() { ImagePath = GetDataPath("images/tomato.jpg") }) 1221var dataFile = GetDataPath("images/images.tsv"); 2050string dataFile = GetDataPath("images/images.tsv");
Microsoft.ML.TestFramework (75)
BaseTestPredictorsMaml.cs (4)
102AddIfNotEmpty(args, GetDataPath(dataName), "data"); 110AddIfNotEmpty(args, GetDataPath(ctx.Dataset.testFilename), "test"); 112AddIfNotEmpty(args, GetDataPath(ctx.Dataset.validFilename), "valid"); 333settings.Add(string.Format("xf=lookup{{col=Label data={{{0}}}}}", GetDataPath(dataset.labelFilename)));
DataPipe\TestDataPipe.cs (15)
40string pathData = GetDataPath(@"lm.sample.txt"); 41string mappingPathData = GetDataPath(@"lm.labels.txt"); 176string pathData = GetDataPath("adult.tiny.with-schema.txt"); 199string pathData = GetDataPath("adult.tiny.with-schema.txt"); 316string pathData = GetDataPath("breast-cancer-withheader.txt"); 516string pathData = GetDataPath("lm.sample.txt"); 546TestCore(GetDataPath("lm.sample.txt"), false, 560string pathData = GetDataPath(@"lm.sample.txt"); 608string pathData = GetDataPath(@"lm.sample.txt"); 717string pathData = GetDataPath(@"lm.sample.txt"); 760string pathData = GetDataPath(@"lm.sample.txt"); 802var dataPath = GetDataPath("breast-cancer-withheader.txt"); 872string pathData = GetDataPath("adult.tiny.with-schema.txt"); 1356string pathData = GetDataPath("MNIST.Test.tiny.txt"); 1495var inputData = GetDataPath(TestDatasets.breastCancer.trainFilename);
DataPipe\TestDataPipeBase.cs (1)
317pathData = GetDataPath(TestDatasets.breastCancer.trainFilename);
TestCommandBase.cs (55)
707string trainData = GetDataPath("adult.tiny.with-schema.txt"); 731string trainDataPath = GetDataPath("adult.tiny.with-schema.txt"); 864string pathData = GetDataPath("iris.txt"); 898string pathData = GetDataPath(@"adult.tiny.with-schema.txt"); 911string pathData = GetDataPath(@"adult.tiny.with-schema.txt"); 936string pathData = GetDataPath("adult.tiny.with-schema.txt"); 990var dataPath = GetDataPath(TestDatasets.adult.testFilename); 1017string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1032string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1033string testData = GetDataPath("adult.tiny.with-schema.txt"); 1067string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1068string testData = GetDataPath("adult.tiny.with-schema.txt"); 1086string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1091string moreTrainData = GetDataPath("adult.tiny.with-schema.txt"); 1102string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1107string moreTrainData = GetDataPath("adult.tiny.with-schema.txt"); 1145string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1183string trainData = GetDataPath("iris.txt"); 1200string trainData = GetDataPath("iris.txt"); 1218string pathTrain = GetDataPath("iris-label-name.txt"); 1242string pathTrain = GetDataPath("iris.data"); 1264string trainData = GetDataPath("auto-sample.txt"); 1288string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1289string testData = GetDataPath("adult.tiny.with-schema.txt"); 1326string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1412string pathData = GetDataPath(TestDatasets.breastCancer.trainFilename); 1505string pathData = GetDataPath("iris-label-name.txt"); 1553string pathData = GetDataPath(TestDatasets.breastCancer.trainFilename); 1659string trainData = GetDataPath("adult.tiny.with-schema.txt"); 1660string testData = GetDataPath("adult.tiny.with-schema.txt"); 1749string pathData = GetDataPath("housing.txt"); 1812var pathTrain = GetDataPath(dataset.trainFilename); 1813var pathTest = GetDataPath(dataset.testFilename); 1839var pathTrain = GetDataPath(dataset.trainFilename); 1840var pathTest = GetDataPath(dataset.testFilename); 1888var dataPath = GetDataPath(TestDatasets.adultRanking.trainFilename); 1940string pathTrain = GetDataPath("MSM-sparse-sample-train.txt"); 1941string pathValid = GetDataPath("MSM-sparse-sample-test.txt"); 1954var pathTrain = GetDataPath(dataset.trainFilename); 1955var pathValid = GetDataPath(dataset.testFilename); 1971string pathTrain = GetDataPath("adult.tiny.with-schema.txt"); 2009string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2025string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2040string trainData = GetDataPath("MSM-sparse-sample-train.txt"); 2041string validData = GetDataPath("MSM-sparse-sample-test.txt"); 2069string trainData = GetDataPath("MSM-sparse-sample-train.txt"); 2070string validData = GetDataPath("MSM-sparse-sample-test.txt"); 2094string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2124string data = GetDataPath(TestDatasets.breastCancer.trainFilename); 2148string idvPath = GetDataPath("datatypes.idv"); 2163string dataPath = GetDataPath("adult.tiny.with-schema.txt"); 2180string dataPath = GetDataPath("multiline-escapechar.csv"); 2197string dataPath = GetDataPath("missing_fields.csv"); 2217string dataPath = GetDataPath("adult.tiny.with-schema.txt"); 2293string pathData = GetDataPath("breast-cancer-withheader.txt");
Microsoft.ML.Tests (234)
AnomalyDetectionTests.cs (3)
28var trainPath = GetDataPath(TestDatasets.mnistOneClass.trainFilename); 29var testPath = GetDataPath(TestDatasets.mnistOneClass.testFilename); 46var trainPath = GetDataPath(TestDatasets.mnistOneClass.trainFilename);
BinaryLoaderSaverTests.cs (1)
24var data = ML.Data.LoadFromBinary(GetDataPath("schema-codec-test.idv"));
FeatureContributionTests.cs (1)
417var trainDataPath = GetDataPath("taxi-fare-train.csv");
ImagesTests.cs (19)
32var dataFile = GetDataPath("images/images.tsv"); 63var dataFile = GetDataPath("images/images.tsv"); 107var dataFile = GetDataPath("images/images.tsv"); 139var dataFile = GetDataPath("images/images.tsv"); 176var dataFile = GetDataPath("images/images.tsv"); 335var dataFile = GetDataPath("images/images.tsv"); 410var dataFile = GetDataPath("images/images.tsv"); 486var dataFile = GetDataPath("images/images.tsv"); 561var dataFile = GetDataPath("images/images.tsv"); 636var dataFile = GetDataPath("images/images.tsv"); 711var dataFile = GetDataPath("images/images.tsv"); 787var dataFile = GetDataPath("images/images.tsv"); 862var dataFile = GetDataPath("images/images.tsv"); 938var dataFile = GetDataPath("images/images.tsv"); 1010var dataFile = GetDataPath("images/fillmode.tsv"); 1178var dataFile = GetDataPath("images/images.tsv"); 1232var dataFile = GetDataPath($"images/{imageName}"); 1279var dataFile = GetDataPath($"images/{imageName}"); 1332var imageFile = GetDataPath($"images/{imageName}");
OnnxConversionTest.cs (40)
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); 278string dataPath = GetDataPath("breast-cancer.txt"); 385var dataPath = GetDataPath("wikipedia-detox-250-line-test.tsv"); 436string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 465string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") : GetDataPath("type-conversion.txt"); 565var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 596var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 623string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 646string dataPath = GetDataPath("iris.txt"); 767string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 787string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 849var dataPath = GetDataPath(@"small-sentiment-test.tsv"); 850var embedNetworkPath = GetDataPath(@"shortsentiment.emd"); 869var dataPath = GetDataPath("wikipedia-detox-250-line-test.tsv"); 941string filePath = GetDataPath("type-conversion.txt"); 964var dataSource = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1002string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1060string dataPath = GetDataPath("type-samples.txt"); 1099string dataPath = GetDataPath("type-samples.txt"); 1189string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") 1190: GetDataPath("type-conversion.txt"); 1227string filePath = (keyType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") 1228: GetDataPath("type-conversion.txt"); 1392string filePath = (valueType == DataKind.Boolean) ? GetDataPath("type-conversion-boolean.txt") : GetDataPath("type-conversion.txt"); 1601string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1646string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1700var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1718var trainDataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename); 1774string dataPath = GetDataPath("iris.txt"); 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 (16)
70=> IntermediateData(GetDataPath("adult.tiny.with-schema.txt")); 208=> TrainRegression(GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename), GetDataPath(TestDatasets.generatedRegressionDataset.testFilename), 295=> PredictOnIris(TrainOnIris(GetDataPath("iris.data"))); 325=> NormalizationWorkout(GetDataPath("iris.data")); 330var dataPath = GetDataPath("housing.txt"); 370var dataPath = GetDataPath("housing.txt"); 405var dataPath = GetDataPath("housing.txt"); 441var dataPath = GetDataPath("housing.txt"); 556=> TextFeaturizationOn(GetDataPath("wikipedia-detox-250-line-data.tsv")); 560=> CategoricalFeaturizationOn(GetDataPath("adult.tiny.with-schema.txt")); 564=> CategoricalFeaturizationOn(GetDataPath("adult.tiny.with-schema.txt"), GetDataPath("adult.tiny.with-schema.txt")); 627=> CrossValidationOn(GetDataPath("iris.data")); 675ReadDataDynamic(GetDataPath("generated_regression_dataset.csv")); 706var data = mlContext.Data.LoadFromTextFile(GetDataPath("adult.tiny.with-schema.txt"), new[]
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
28var dataPath = GetDataPath(TestDatasets.irisData.trainFilename);
Scenarios\Api\Estimators\Extensibility.cs (1)
27var dataPath = GetDataPath(TestDatasets.irisData.trainFilename);
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 (3)
26var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 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 (4)
174var dataFile = GetDataPath(TestDatasets.breastCancer.trainFilename); 268var dataFile = GetDataPath(TestDatasets.breastCancer.trainFilename); 299var dataPath = GetDataPath("adult.tiny.with-schema.txt"); 347var dataPath = GetDataPath("adult.tiny.with-schema.txt");
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);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
30string dataPath = GetDataPath("iris.data");
Scenarios\OvaTest.cs (8)
17string dataPath = GetDataPath("iris.txt"); 31var textData = reader.Load(GetDataPath(dataPath)); 50string dataPath = GetDataPath("iris.txt"); 65var textData = reader.Load(GetDataPath(dataPath)); 86string dataPath = GetDataPath("iris.txt"); 101var textData = reader.Load(GetDataPath(dataPath)); 121string dataPath = GetDataPath("iris.txt"); 135var textData = reader.Load(GetDataPath(dataPath));
Scenarios\RegressionTest.cs (1)
17string taxiDataPath = GetDataPath("taxi-fare-train.csv");
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
38string dataPath = GetDataPath(TestDatasets.iris.trainFilename);
TermEstimatorTests.cs (1)
54string dataPath = GetDataPath("adult.tiny.with-schema.txt");
TextLoaderTests.cs (26)
221string dataPath = GetDataPath("QuotingData.csv"); 332string dataPath = GetDataPath("SparseData.txt"); 486string dataPath = GetDataPath("TrimData.csv"); 593var directoryName = GetDataPath("Tiny"); 610var fileName = GetDataPath(TestDatasets.adult.trainFilename); 732var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 814string textLoaderModelPath = GetDataPath("backcompat/textloader-with-key-model.zip"); 815string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 833string textLoaderModelPath = GetDataPath("backcompat/textloader_VerWritt_0x0001000C.zip"); 834string irisPath = GetDataPath(TestDatasets.irisData.trainFilename); 893string dataPathDecimalMarkerPeriod = GetDataPath("iris.txt"); 903var textDataDecimalMarkerPeriod = readerDecimalMarkerPeriod.Load(GetDataPath(dataPathDecimalMarkerPeriod)); 941dataPathDecimalMarkerComma = GetDataPath("iris-decimal-marker-as-comma.csv"); 949dataPathDecimalMarkerComma = GetDataPath("iris-decimal-marker-as-comma.txt"); 953var textDataDecimalMarkerComma = readerDecimalMarkerComma.Load(GetDataPath(dataPathDecimalMarkerComma)); 999dataPath = GetDataPath("iris.txt"); // Has '.' as decimal marker inside dataset 1004dataPath = GetDataPath("iris-decimal-marker-as-comma.txt"); // Has ',' as decimal marker inside dataset 1008var textData = reader.Load(GetDataPath(dataPath)); 1038var periodPath = GetDataPath("iris.txt"); 1039var commaPath = GetDataPath("iris-decimal-marker-as-comma.txt"); 1182var dataPath = GetDataPath(TestDatasets.irisData.trainFilename); 1242string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1254string breastCancerPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 1272dataPath = GetDataPath("multiline.csv"); 1274dataPath = GetDataPath("multiline-escapechar.csv"); 1425var inputPath = GetDataPath("missing_fields.csv");
TrainerEstimators\FAFMEstimator.cs (1)
69.Load(GetDataPath(TestDatasets.breastCancer.trainFilename));
TrainerEstimators\LbfgsTests.cs (4)
143string dropModelPath = GetDataPath("backcompat/LrWithStats.zip"); 144string trainData = GetDataPath("adult.tiny.with-schema.txt"); 234string dropModelPath = GetDataPath("backcompat/MlrWithStats.zip"); 235string trainData = GetDataPath("iris.data");
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 (1)
85var data = loader.Load(GetDataPath(TestDatasets.irisData.trainFilename));
TrainerEstimators\OneDalEstimators.cs (2)
37var trainDataPath = GetDataPath("binary_synth_data_train.csv"); 38var testDataPath = GetDataPath("binary_synth_data_test.csv");
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 (6)
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)); 286}).Load(GetDataPath(IrisDataPath));
TrainerEstimators\TreeEstimators.cs (1)
322var modelPath = GetDataPath("iris-lgbm.txt");
Transformers\CategoricalHashTests.cs (1)
80string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\CategoricalTests.cs (1)
156string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\ConcatTests.cs (2)
43string dataPath = GetDataPath("adult.tiny.with-schema.txt"); 101string dataPath = GetDataPath("adult.tiny.with-schema.txt");
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 (4)
54string dataPath = GetDataPath("adult.tiny.with-schema.txt"); 90string dataPath = GetDataPath("adult.test"); 168string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename); 193string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\ExpressionTransformerTests.cs (1)
22string dataPath = GetDataPath("adult.tiny.with-schema.txt");
Transformers\FeatureSelectionTests.cs (7)
30string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 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 (2)
25string dataPath = GetDataPath("iris.txt"); 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 (16)
35string dataPath = GetDataPath(TestDatasets.iris.trainFilename); 104string dataPath = GetDataPath("iris.txt"); 221string dataPath = GetDataPath("iris.txt"); 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); 875string chooseModelPath = GetDataPath("backcompat/ap_with_norm.zip"); 989string dataPath = GetDataPath(TestDatasets.iris.trainFilename);
Transformers\PcaTests.cs (1)
22_dataSource = GetDataPath("generated_regression_dataset.csv");
Transformers\RffTests.cs (1)
66string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\SelectColumnsTests.cs (4)
220string dropModelPath = GetDataPath("backcompat/drop-model.zip"); 248string dropModelPath = GetDataPath("backcompat/keep-model.zip"); 276string dropModelPath = GetDataPath("backcompat/choose-model.zip"); 304string chooseModelPath = GetDataPath("backcompat/choose-keep-model.zip");
Transformers\TextFeaturizerTests.cs (13)
425string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 458string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 488string dataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 512string dataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 525string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 557string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 588string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 618string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 653string dropModelPath = GetDataPath("backcompat/ngram.zip"); 654string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 672string sentimentDataPath = GetDataPath("wikipedia-detox-250-line-data.tsv"); 762ML.Data.LoadFromTextFile(GetDataPath(TestDatasets.Sentiment.testFilename), 776string dataPath = GetDataPath(TestDatasets.breastCancer.trainFilename);
Transformers\TextNormalizer.cs (1)
50var dataPath = GetDataPath("wikipedia-detox-250-line-data.tsv");
Transformers\ValueMappingTests.cs (6)
648var dataFile = GetDataPath("QuotingData.csv"); 657var dataFile = GetDataPath("lm.labels.txt"); 666var dataFile = GetDataPath("lm.labels.txt"); 675var dataFile = GetDataPath("lm.labels.txt"); 716string termLookupModelPath = GetDataPath("backcompat/termlookup.zip"); 733string termLookupModelPath = GetDataPath("backcompat/termlookup_with_key.zip");
Transformers\WordEmbeddingsTests.cs (4)
28var dataPath = GetDataPath(TestDatasets.Sentiment.trainFilename); 39}).Load(GetDataPath(dataPath)); 63var dataPath = GetDataPath(TestDatasets.Sentiment.trainFilename); 74}).Load(GetDataPath(dataPath));
Microsoft.ML.TimeSeries.Tests (4)
TimeSeries.cs (3)
31TestCore(GetDataPath(Path.Combine("Timeseries", "real_1.csv")), 47TestCore(GetDataPath(Path.Combine("Timeseries", "real_11.csv")), 63TestCore(GetDataPath(Path.Combine("Timeseries", "A4Benchmark-TS2.csv")),
TimeSeriesDirectApi.cs (1)
536var dataPath = GetDataPath(Path.Combine("Timeseries", "anomaly_detection.csv"));
Microsoft.ML.TorchSharp.Tests (6)
NerTests.cs (2)
194var labelFilePath = GetDataPath("ner-key-info.txt"); 201var dataFilePath = GetDataPath("ner-conll2012_english_v4_train.txt");
ObjectDetectionTests.cs (1)
30var dataFile = GetDataPath("images/object-detection/fruit-detection-ten.tsv");
QATests.cs (1)
71var trainFile = GetDataPath("squad-train.tsv");
TextClassificationTests.cs (2)
174var df = DataFrame.LoadCsv(GetDataPath("github-issues-train.tsv"), separator: '\t', header: true, columnNames: new[] { "ID", "Label", "Title", "Description" }); 415var trainFile = GetDataPath("home-depot-relevance-train.csv");