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