1 write to Data
Microsoft.ML.Data (1)
MLContext.cs (1)
159
Data
= new DataOperationsCatalog(_env);
1473 references to Data
Microsoft.Data.Analysis.Tests (2)
DataFrameIDataViewTests.cs (2)
365
IDataView data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
488
var data = mlContext.
Data
.LoadFromEnumerable(inputData);
Microsoft.ML.AutoML (16)
API\BinaryClassificationExperiment.cs (1)
183
var splitData = Context.
Data
.TrainTestSplit(trainData);
API\MulticlassClassificationExperiment.cs (1)
167
var splitData = Context.
Data
.TrainTestSplit(trainData);
API\RegressionExperiment.cs (1)
189
var splitData = Context.
Data
.TrainTestSplit(trainData);
AutoMLExperiment\IDatasetManager.cs (1)
89
var subSampledTrainDataset = context.
Data
.TakeRows(_trainDataset, count);
AutoMLExperiment\ITrialResultManager.cs (1)
148
var dataView = context.
Data
.LoadFromTextFile(filePath, textLoaderColumns, separatorChar: ',', hasHeader: true, allowQuoting: true);
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (1)
43
var datasetSplit = _mLContext!.
Data
.CrossValidationSplit(crossValidateDatasetManager.Dataset, crossValidateDatasetManager.Fold, crossValidateDatasetManager.SamplingKeyColumnName);
ColumnInference\ColumnInferenceApi.cs (1)
62
var textLoader = context.
Data
.CreateTextLoader(typedLoaderOptions);
ColumnInference\ColumnTypeInference.cs (2)
268
var textLoader = context.
Data
.CreateTextLoader(textLoaderOptions);
270
idv = context.
Data
.TakeRows(idv, args.MaxRowsToRead);
ColumnInference\PurposeInference.cs (1)
244
data = context.
Data
.TakeRows(data, MaxRowsToRead);
ColumnInference\TextFileContents.cs (2)
93
var textLoader = context.
Data
.CreateTextLoader(options, source);
94
var idv = context.
Data
.TakeRows(textLoader.Load(source), 1000);
DatasetDimensions\DatasetDimensionsApi.cs (1)
15
data = context.
Data
.TakeRows(data, MaxRowsToRead);
Tuner\SmacTuner.cs (1)
147
var trainTestSplit = _context.
Data
.TrainTestSplit(data);
Utils\SplitUtil.cs (2)
17
var splits = context.
Data
.CrossValidationSplit(trainData, (int)numFolds, samplingKeyColumnName: samplingKeyColumn);
53
var splitData = context.
Data
.TrainTestSplit(trainData, samplingKeyColumnName: samplingKeyColumn);
Microsoft.ML.AutoML.Samples (16)
AutoFit\BinaryClassificationExperiment.cs (2)
21
IDataView trainDataView = mlContext.
Data
.LoadFromTextFile<SentimentIssue>(TrainDataPath, hasHeader: true);
22
IDataView testDataView = mlContext.
Data
.LoadFromTextFile<SentimentIssue>(TestDataPath, hasHeader: true);
AutoFit\MulticlassClassificationExperiment.cs (2)
22
IDataView trainDataView = mlContext.
Data
.LoadFromTextFile<PixelData>(TrainDataPath, separatorChar: ',');
23
IDataView testDataView = mlContext.
Data
.LoadFromTextFile<PixelData>(TestDataPath, separatorChar: ',');
AutoFit\RankingExperiment.cs (2)
25
IDataView trainDataView = mlContext.
Data
.LoadFromTextFile<SearchData>(TrainDataPath, hasHeader: true, separatorChar: ',');
26
IDataView testDataView = mlContext.
Data
.LoadFromTextFile<SearchData>(TestDataPath, hasHeader: true, separatorChar: ',');
AutoFit\RecommendationExperiment.cs (2)
28
IDataView trainDataView = mlContext.
Data
.LoadFromTextFile<Movie>(TrainDataPath, hasHeader: true, separatorChar: ',');
29
IDataView testDataView = mlContext.
Data
.LoadFromTextFile<Movie>(TestDataPath, hasHeader: true, separatorChar: ',');
AutoFit\RegressionExperiment.cs (2)
22
IDataView trainDataView = mlContext.
Data
.LoadFromTextFile<TaxiTrip>(TrainDataPath, hasHeader: true, separatorChar: ',');
23
IDataView testDataView = mlContext.
Data
.LoadFromTextFile<TaxiTrip>(TestDataPath, hasHeader: true, separatorChar: ',');
AutoMLExperiment.cs (2)
24
var dataView = context.
Data
.LoadFromEnumerable(data);
26
var trainTestSplit = context.
Data
.TrainTestSplit(dataView);
Cifar10.cs (2)
35
var trainDataset = context.
Data
.LoadFromEnumerable(trainImages);
36
var testDataset = context.
Data
.LoadFromEnumerable(testImages);
Sweepable\SweepableLightGBMBinaryExperiment.cs (2)
36
var dataView = context.
Data
.LoadFromEnumerable(data);
39
var trainTestSplit = context.
Data
.TrainTestSplit(dataView, testFraction: 0.1);
Microsoft.ML.AutoML.Tests (35)
AutoFeaturizerTests.cs (1)
109
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
AutoFitTests.cs (23)
47
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
73
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
100
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
102
var dataTrainTest = context.
Data
.TrainTestSplit(trainData);
127
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
161
var trainTestSplit = context.
Data
.TrainTestSplit(dataset);
243
.Execute(context.
Data
.TakeRows(dataset, 1000), label);
250
var model = result.BestRun.Estimator.Fit(context.
Data
.TakeRows(dataset, 1000));
261
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
306
trainData = context.
Data
.TakeRows(trainData, crossValRowCountThreshold - 1);
335
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
336
var trainData = context.
Data
.ShuffleRows(textLoader.Load(datasetPath), seed: 1);
338
TrainTestData trainTestData = context.
Data
.TrainTestSplit(trainData, testFraction: 0.2, seed: 1);
362
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
363
var trainData = context.
Data
.ShuffleRows(textLoader.Load(datasetPath), seed: 1);
392
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
420
var testDataView = mlContext.
Data
.TakeRows(trainDataView, 500);
421
trainDataView = mlContext.
Data
.SkipRows(trainDataView, 500);
484
trainDataView = mlContext.
Data
.TakeRows(trainDataView, 1499);
587
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
589
var dataTrainTest = context.
Data
.TrainTestSplit(dataFull);
590
var dataCV = context.
Data
.CrossValidationSplit(dataFull, numberOfFolds: 2);
651
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
AutoMLExperimentTests.cs (4)
108
experiment.SetDataset(context.
Data
.TrainTestSplit(data))
225
experiment.SetDataset(context.
Data
.TrainTestSplit(data))
250
experiment.SetDataset(context.
Data
.TrainTestSplit(data))
329
experiment.SetDataset(context.
Data
.TrainTestSplit(data))
DatasetUtil.cs (6)
59
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
72
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
85
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
98
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
110
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
121
var textLoader = context.
Data
.CreateTextLoader(columnInferenceResult.TextLoaderOptions);
TrainValidaionDatasetManagerTest.cs (1)
31
var textLoader = context.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
42
var textLoader = mlContext.
Data
.CreateTextLoader(columnInference.TextLoaderOptions);
Microsoft.ML.CodeGenerator.Tests (2)
UtilTest.cs (2)
131
var dataView = context.
Data
.LoadFromTextFile<TestClass>(filePath, separatorChar: ',', hasHeader: true);
166
var dataView = context.
Data
.LoadFromTextFile<TestClassContainsDuplicates>(filePath, separatorChar: ',', hasHeader: true);
Microsoft.ML.Core.Tests (12)
UnitTests\TestCustomTypeRegister.cs (2)
184
var tribeDataView = ML.
Data
.LoadFromEnumerable(tribe);
188
var tribeEnumerable = ML.
Data
.CreateEnumerable<SuperAlienHero>(tribeTransformed, false).ToList();
UnitTests\TestEntryPoints.cs (9)
745
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
893
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
1054
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
1197
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
1344
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
1440
var loadedData = mlContext.
Data
.LoadFromBinary(outputDataPath);
4719
var data = ML.
Data
.LoadFromTextFile(dataPath, new[]
4761
var data = ML.
Data
.LoadFromTextFile(dataPath, new[]
6664
ML.
Data
.SaveAsText(data, f);
UnitTests\TestHosts.cs (1)
131
env.
Data
.CreateTextLoader(new TextLoader.Options { Columns = new[] { new TextLoader.Column("TestColumn", DataKind.Single, 0) } });
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
94
.ToDictionary(group => group.Key, group => _context.
Data
.LoadFromEnumerable(group.Select(g => g.Item2)));
Microsoft.ML.Fairlearn.Tests (3)
GridSearchTest.cs (2)
93
var shuffledDataset = context.
Data
.ShuffleRows(df);
94
var trainTestSplit = context.
Data
.TrainTestSplit(shuffledDataset, 0.2);
MetricTest.cs (1)
19
data = mlContext.
Data
.LoadFromEnumerable(houseData);
Microsoft.ML.IntegrationTests (116)
Common.cs (2)
75
var enumerable1 = mlContext.
Data
.CreateEnumerable<TypeTestData>(data1, true);
76
var enumerable2 = mlContext.
Data
.CreateEnumerable<TypeTestData>(data2, true);
DataIO.cs (10)
36
var data = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
51
var data = mlContext.
Data
.LoadFromEnumerable(enumerableBefore);
54
var enumerableAfter = mlContext.
Data
.CreateEnumerable<TypeTestData>(data, true);
70
var dataBefore = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
92
var dataBefore = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
98
var dataAfter = mlContext.
Data
.LoadFromTextFile<TypeTestData>(filePath, separatorChar: separator, hasHeader: true, allowQuoting: true);
111
var dataBefore = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
115
var dataAfter = mlContext.
Data
.LoadFromBinary(filePath);
123
mlContext.
Data
.SaveAsText(data, file, separatorChar: separator, headerRow: true);
132
mlContext.
Data
.SaveAsBinary(data, file);
Datasets\Iris.cs (1)
39
var data = mlContext.
Data
.LoadFromTextFile<Iris>(filePath, hasHeader: hasHeader, separatorChar: separatorChar);
Datasets\MnistOneClass.cs (1)
19
return mlContext.
Data
.CreateTextLoader(
Datasets\TrivialMatrixFactorization.cs (1)
27
var data = mlContext.
Data
.LoadFromTextFile<TrivialMatrixFactorization>(filePath, hasHeader: hasHeader, separatorChar: separatorChar);
Datasets\TypeTestData.cs (1)
79
return mlContext.
Data
.CreateTextLoader(
DataTransformation.cs (11)
32
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
39
data = mlContext.
Data
.TakeRows(data, numSamples);
67
var transformedRows = mlContext.
Data
.CreateEnumerable<IrisWithOneExtraColumn>(transformedData, reuseRowObject: true);
85
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
92
data = mlContext.
Data
.TakeRows(data, numSamples);
113
var transformedRows = mlContext.
Data
.CreateEnumerable<IrisWithTwoExtraColumns>(transformedData, reuseRowObject: true);
132
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
169
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
182
var dataEnumerator = mlContext.
Data
.CreateEnumerable<FeatureColumn>(transformedData, true);
196
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
210
var dataEnumerator = mlContext.
Data
.CreateEnumerable<HashedFeatureColumn>(transformedData, true);
Debugging.cs (6)
40
var data = mlContext.
Data
.LoadFromEnumerable<TweetSentiment>(
104
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
133
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
147
foreach (var row in mlContext.
Data
.CreateEnumerable<HousingRegression>(mlContext.
Data
.TakeRows(data, 1), true))
171
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
Evaluation.cs (6)
60
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
89
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
118
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
146
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
268
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
295
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
Explainability.cs (20)
35
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
93
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
117
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
144
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
171
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
189
var shuffledSubset = mlContext.
Data
.TakeRows(mlContext.
Data
.ShuffleRows(outputData), 10);
190
var scoringEnumerator = mlContext.
Data
.CreateEnumerable<FeatureContributionOutput>(shuffledSubset, true);
208
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
226
var shuffledSubset = mlContext.
Data
.TakeRows(mlContext.
Data
.ShuffleRows(outputData), 10);
227
var scoringEnumerator = mlContext.
Data
.CreateEnumerable<FeatureContributionOutput>(shuffledSubset, true);
245
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
263
var shuffledSubset = mlContext.
Data
.TakeRows(mlContext.
Data
.ShuffleRows(outputData), 10);
264
var scoringEnumerator = mlContext.
Data
.CreateEnumerable<FeatureContributionOutput>(shuffledSubset, true);
283
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
301
var shuffledSubset = mlContext.
Data
.TakeRows(mlContext.
Data
.ShuffleRows(outputData), 10);
302
var scoringEnumerator = mlContext.
Data
.CreateEnumerable<FeatureContributionOutput>(shuffledSubset, true);
IntrospectiveTraining.cs (10)
35
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
75
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
137
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
178
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
219
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
258
var data = mlContext.
Data
.LoadFromTextFile<Iris>(
289
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
332
var data = mlContext.
Data
.LoadFromTextFile<Adult>(TestCommon.GetDataPath(DataDir, TestDatasets.adult.trainFilename),
369
var transformedRows = mlContext.
Data
.CreateEnumerable<Adult>(data, false);
389
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
ModelFiles.cs (14)
45
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
92
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
119
var dataEnumerator = mlContext.
Data
.CreateEnumerable<HousingRegression>(mlContext.
Data
.TakeRows(data, 5), false);
135
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
268
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
297
data = mlContext.
Data
.LoadFromEnumerable(new[] { new InputData() });
325
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
344
data = mlContext.
Data
.LoadFromEnumerable(new[] { new InputData() });
348
data = mlContext.
Data
.LoadFromEnumerable(new[] { new InputData() }, loadedSchema);
358
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
387
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
425
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
458
var loader = mlContext.
Data
.CreateTextLoader<InputData>(hasHeader: true, dataSample: file);
ONNX.cs (9)
37
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
68
var dataEnumerator = mlContext.
Data
.CreateEnumerable<HousingRegression>(mlContext.
Data
.TakeRows(data, 5), false);
87
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
120
var dataEnumerator = mlContext.
Data
.CreateEnumerable<HousingRegression>(mlContext.
Data
.TakeRows(data, 5), false);
139
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
167
var dataEnumerator = mlContext.
Data
.CreateEnumerable<HousingRegression>(mlContext.
Data
.TakeRows(data, 5), false);
Prediction.cs (3)
46
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
82
var data = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
105
var data = mlContext.
Data
.LoadFromEnumerable(TypeTestData.GenerateDataset());
SchemaDefinitionTests.cs (2)
34
var loader = _ml.
Data
.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName));
65
var loader = _ml.
Data
.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName));
Training.cs (12)
32
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
36
var trainTestSplit = mlContext.
Data
.TrainTestSplit(data);
86
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
130
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
174
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
218
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
261
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
312
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename),
356
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename),
400
var data = mlContext.
Data
.LoadFromTextFile<TweetSentiment>(TestCommon.GetDataPath(DataDir, TestDatasets.Sentiment.trainFilename),
448
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
479
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename),
Validation.cs (7)
38
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
73
var reader = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
104
var data = mlContext.
Data
.LoadFromTextFile<HousingRegression>(TestCommon.GetDataPath(DataDir, TestDatasets.housing.trainFilename), hasHeader: true);
107
var dataSplit = mlContext.
Data
.TrainTestSplit(data, testFraction: 0.2);
153
var data = mlContext.
Data
.LoadFromTextFile<Iris>(TestCommon.GetDataPath(DataDir, TestDatasets.iris.trainFilename), hasHeader: true);
160
var scoredDataOneRow = model.Transform(mlContext.
Data
.TakeRows(data, 1));
166
var scoredDataZeroRows = mlContext.
Data
.FilterRowsByColumn(scoredDataOneRow, "Label", lowerBound: -2, upperBound: -1);
Microsoft.ML.OnnxTransformerTest (36)
DnnImageFeaturizerTest.cs (7)
80
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
81
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
82
var invalidDataWrongVectorSize = ML.
Data
.LoadFromEnumerable(sizeData);
104
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
143
var dataView = ML.
Data
.LoadFromEnumerable(
214
var data = ML.
Data
.LoadFromTextFile<ModelInput>(
241
ModelInput sample = ML.
Data
.CreateEnumerable<ModelInput>(data, false).First();
OnnxTransformTests.cs (29)
131
var dataView = ML.
Data
.LoadFromEnumerable(
160
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
161
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
162
var invalidDataWrongVectorSize = ML.
Data
.LoadFromEnumerable(sizeData);
186
var dataView = ML.
Data
.LoadFromEnumerable(
249
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
300
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
361
var dataView = ML.
Data
.LoadFromEnumerable(
394
var dataView = ML.
Data
.LoadFromEnumerable(
428
var dataView = ML.
Data
.LoadFromEnumerable(
467
var dataView = ML.
Data
.LoadFromEnumerable(
535
var idv = mlContext.
Data
.LoadFromEnumerable(data);
539
var predictions = mlContext.
Data
.CreateEnumerable<PredictionUnknownDimensions>(transformedValues, reuseRowObject: false).ToArray();
561
var idv = mlContext.
Data
.LoadFromEnumerable(data);
565
var predictions = mlContext.
Data
.CreateEnumerable<PredictionNoneDimension>(transformedValues, reuseRowObject: false).ToArray();
637
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
651
var transformedDataPoints = ML.
Data
.CreateEnumerable<ImageDataPoint>(onnx, false).ToList();
693
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
719
var transformedDataPoints = ML.
Data
.CreateEnumerable<ZipMapInt64Output>(transformedDataView, false).ToList();
746
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
772
var transformedDataPoints = ML.
Data
.CreateEnumerable<ZipMapStringOutput>(transformedDataView, false).ToList();
860
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
864
var transformedDataPoints = ML.
Data
.CreateEnumerable<OnnxMapOutput>(transformedDataView, false).ToList();
900
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
930
var transformedDataPoints = ML.
Data
.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList();
962
var dataView = ML.
Data
.LoadFromEnumerable(
1070
var dataView = ML.
Data
.LoadFromEnumerable(dataPoints);
1094
var transformedDataPoints = ML.
Data
.CreateEnumerable<PredictionWithCustomShape>(transformedDataView, false).ToList();
1129
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
Microsoft.ML.PerformanceTests (15)
CacheDataViewBench.cs (1)
37
var cacheDv = ctx.
Data
.Cache(dv);
FeaturizeTextBench.cs (1)
39
var textLoader = _mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
ImageClassificationBench.cs (3)
57
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
58
_mlContext.
Data
.LoadFromEnumerable(images));
69
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
KMeansAndLogisticRegressionBench.cs (1)
24
var input = ml.
Data
.LoadFromTextFile(_dataPath, new[] {
RffTransform.cs (1)
32
var loader = mlContext.
Data
.CreateTextLoader(new TextLoader.Options
ShuffleRowsBench.cs (2)
32
IDataView data = _context.
Data
.LoadFromEnumerable(_rows);
34
IDataView shuffledData = _context.
Data
.ShuffleRows(data, seed: 0);
StochasticDualCoordinateAscentClassifierBench.cs (4)
101
var loader = _mlContext.
Data
.LoadFromTextFile(_sentimentDataPath, arguments);
166
public void PredictIrisBatchOf1() => _trainedModel.Transform(_mlContext.
Data
.LoadFromEnumerable(_batches[0]));
169
public void PredictIrisBatchOf2() => _trainedModel.Transform(_mlContext.
Data
.LoadFromEnumerable(_batches[1]));
172
public void PredictIrisBatchOf5() => _trainedModel.Transform(_mlContext.
Data
.LoadFromEnumerable(_batches[2]));
TextLoaderBench.cs (1)
42
var textLoader = _mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
TextPredictionEngineCreation.cs (1)
24
var data = _context.
Data
.LoadFromTextFile<SentimentData>(
Microsoft.ML.Predictor.Tests (6)
TestIniModels.cs (2)
519
var idv = mlContext.
Data
.CreateTextLoader(
558
var idv = mlContext.
Data
.CreateTextLoader(
TestPredictors.cs (4)
627
var dataView = ML.
Data
.LoadFromTextFile(dataPath);
648
var dataView = ML.
Data
.LoadFromTextFile(dataPath);
757
var dataView = ML.
Data
.LoadFromTextFile(dataPath);
803
var dataView = ML.
Data
.LoadFromTextFile(dataPath);
Microsoft.ML.Samples (501)
Dynamic\DataOperations\BootstrapSample.cs (3)
25
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
43
var resample = mlContext.
Data
.BootstrapSample(data, seed: i);
45
var enumerable = mlContext.
Data
Dynamic\DataOperations\Cache.cs (2)
29
var cachedData = mlContext.
Data
.Cache(data);
64
var enumerable = mlContext.
Data
Dynamic\DataOperations\CrossValidationSplit.cs (15)
22
var dataview = mlContext.
Data
.LoadFromEnumerable(examples);
30
var folds = mlContext.
Data
34
var trainSet = mlContext.
Data
38
var testSet = mlContext.
Data
58
trainSet = mlContext.
Data
62
testSet = mlContext.
Data
81
trainSet = mlContext.
Data
85
testSet = mlContext.
Data
105
folds = mlContext.
Data
.CrossValidationSplit(dataview, numberOfFolds: 3);
106
trainSet = mlContext.
Data
110
testSet = mlContext.
Data
129
trainSet = mlContext.
Data
133
testSet = mlContext.
Data
152
trainSet = mlContext.
Data
156
testSet = mlContext.
Data
.CreateEnumerable<DataPoint>(folds[2].TestSet,
Dynamic\DataOperations\DataViewEnumerable.cs (3)
23
IDataView data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
27
var rowEnumerable = mlContext.
Data
36
var rowEnumerableIgnoreMissing = mlContext.
Data
Dynamic\DataOperations\FilterRowsByColumn.cs (3)
20
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
46
var filteredData = mlContext.
Data
52
var enumerable = mlContext.
Data
Dynamic\DataOperations\FilterRowsByCustomPredicate.cs (3)
27
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
48
var filteredData = mlContext.
Data
.FilterByCustomPredicate<InputData>(
52
var enumerable = mlContext.
Data
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (6)
33
var data = mlContext.
Data
.LoadFromEnumerable(samples);
40
var enumerable = mlContext.
Data
68
var filteredHalfData = mlContext.
Data
72
var filteredHalfEnumerable = mlContext.
Data
95
var filteredMiddleData = mlContext.
Data
101
var filteredMiddleEnumerable = mlContext.
Data
Dynamic\DataOperations\FilterRowsByMissingValues.cs (3)
32
var data = mlContext.
Data
.LoadFromEnumerable(samples);
35
var filteredData = mlContext.
Data
40
var enumerable = mlContext.
Data
Dynamic\DataOperations\FilterRowsByStatefulCustomPredicate.cs (3)
27
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
48
var filteredData = mlContext.
Data
.FilterByStatefulCustomPredicate<InputData, State>(
58
var enumerable = mlContext.
Data
Dynamic\DataOperations\LoadFromEnumerable.cs (2)
39
IDataView data = mlContext.
Data
.LoadFromEnumerable(enumerableKnownSize);
81
IDataView data2 = mlContext.
Data
Dynamic\DataOperations\LoadingSvmLight.cs (2)
46
var loader = mlContext.
Data
.CreateSvmLightLoader(dataSample: file);
75
loader = mlContext.
Data
.CreateSvmLightLoader(inputSize: 10);
Dynamic\DataOperations\LoadingText.cs (6)
43
var loader = mlContext.
Data
.CreateTextLoader(
78
mlContext.
Data
.CreateTextLoader<Data>(hasHeader: false);
91
var loaderWithUnknownLength = mlContext.
Data
.CreateTextLoader(
122
mlContext.
Data
.SaveAsText(singleFileData, stream);
138
var sparseLoader = mlContext.
Data
.CreateTextLoader(
174
mlContext.
Data
.CreateTextLoader(options, dataSample: dataSampleWithSchema);
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (4)
30
IDataView data = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
mlContext.
Data
.SaveAsBinary(data, stream);
38
IDataView loadedData = mlContext.
Data
.LoadFromBinary("data.idv");
41
var loadedDataEnumerable = mlContext.
Data
Dynamic\DataOperations\SaveAndLoadFromText.cs (4)
30
IDataView data = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
mlContext.
Data
.SaveAsText(data, stream);
38
IDataView loadedData = mlContext.
Data
.LoadFromTextFile("data.tsv");
41
var loadedDataEnumerable = mlContext.
Data
Dynamic\DataOperations\ShuffleRows.cs (3)
20
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
39
var shuffledData = mlContext.
Data
.ShuffleRows(data, seed: 123);
43
var enumerable = mlContext.
Data
Dynamic\DataOperations\SkipRows.cs (3)
19
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
43
var filteredData = mlContext.
Data
.SkipRows(data, 5);
47
var enumerable = mlContext.
Data
Dynamic\DataOperations\TakeRows.cs (3)
20
var data = mlContext.
Data
.LoadFromEnumerable(enumerableOfData);
44
var filteredData = mlContext.
Data
.TakeRows(data, 5);
48
var enumerable = mlContext.
Data
Dynamic\DataOperations\TrainTestSplit.cs (7)
22
var dataview = mlContext.
Data
.LoadFromEnumerable(examples);
30
var split = mlContext.
Data
34
var trainSet = mlContext.
Data
37
var testSet = mlContext.
Data
57
split = mlContext.
Data
.TrainTestSplit(dataview, testFraction: 0.2);
58
trainSet = mlContext.
Data
61
testSet = mlContext.
Data
Dynamic\ModelOperations\OnnxConversion.cs (3)
45
var trainTestOriginalData = mlContext.
Data
93
var outScores = mlContext.
Data
.CreateEnumerable<ScoreValue>(output, reuseRowObject: false);
94
var onnxOutScores = mlContext.
Data
.CreateEnumerable<OnnxScoreValue>(onnxOutput, reuseRowObject: false);
Dynamic\ModelOperations\SaveLoadModel.cs (1)
23
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
23
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
Dynamic\NgramExtraction.cs (1)
29
var trainData = ml.
Data
.LoadFromEnumerable(data);
Dynamic\TensorFlow\ImageClassification.cs (2)
39
var idv = mlContext.
Data
.LoadFromEnumerable(data);
52
var outScores = mlContext.
Data
.CreateEnumerable<OutputScores>(
Dynamic\TensorFlow\TextClassification.cs (2)
42
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
45
var lookupMap = mlContext.
Data
.LoadFromTextFile(Path.Combine(
Dynamic\TextTransform.cs (1)
31
var trainData = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (2)
32
var data = mlContext.
Data
.LoadFromEnumerable(samples);
47
var results = mlContext.
Data
.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (2)
34
var data = mlContext.
Data
.LoadFromEnumerable(samples);
55
var results = mlContext.
Data
.CreateEnumerable<Result>(transformed,
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
46
var testData = mlContext.
Data
53
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (3)
23
var trainTestData = mlContext.
Data
39
var outScores = mlContext.
Data
64
var outScoresAndProbabilities = mlContext.
Data
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (3)
23
var trainTestData = mlContext.
Data
39
var outScores = mlContext.
Data
64
var outScoresAndProbabilities = mlContext.
Data
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (3)
23
var trainTestData = mlContext.
Data
39
var outScores = mlContext.
Data
64
var outScoresAndProbabilities = mlContext.
Data
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (3)
23
var trainTestData = mlContext.
Data
39
var outScores = mlContext.
Data
64
var outScoresAndProbabilities = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (4)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
32
trainingData = mlContext.
Data
.Cache(trainingData);
43
var testData = mlContext.
Data
50
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FastForest.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
38
var testData = mlContext.
Data
45
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
50
var testData = mlContext.
Data
57
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FastTree.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
38
var testData = mlContext.
Data
45
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
50
var testData = mlContext.
Data
57
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(data);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(data);
Dynamic\Trainers\BinaryClassification\Gam.cs (2)
24
var data = mlContext.
Data
.LoadFromEnumerable(samples);
27
var dataSets = mlContext.
Data
.TrainTestSplit(data);
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (2)
25
var data = mlContext.
Data
.LoadFromEnumerable(samples);
28
var dataSets = mlContext.
Data
.TrainTestSplit(data);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
44
var testData = mlContext.
Data
51
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LdSvm.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
44
var testData = mlContext.
Data
51
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LightGbm.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
38
var testData = mlContext.
Data
45
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
49
var testData = mlContext.
Data
56
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
44
var testData = mlContext.
Data
51
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
18
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (4)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
32
trainingData = mlContext.
Data
.Cache(trainingData);
43
var testData = mlContext.
Data
50
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (4)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
33
trainingData = mlContext.
Data
.Cache(trainingData);
55
var testData = mlContext.
Data
62
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (4)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
32
trainingData = mlContext.
Data
.Cache(trainingData);
43
var testData = mlContext.
Data
50
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (4)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
33
trainingData = mlContext.
Data
.Cache(trainingData);
57
var testData = mlContext.
Data
64
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
47
var testData = mlContext.
Data
54
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
42
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
44
var testData = mlContext.
Data
51
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
38
var testData = mlContext.
Data
45
var predictions = mlContext.
Data
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
47
var testData = mlContext.
Data
54
var predictions = mlContext.
Data
Dynamic\Trainers\Clustering\KMeans.cs (3)
24
IDataView trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
var testData = mlContext.
Data
.LoadFromEnumerable(
42
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (3)
25
IDataView trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
43
var testData = mlContext.
Data
.LoadFromEnumerable(
50
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (3)
43
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
44
mlContext.
Data
.LoadFromEnumerable(images));
58
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
47
IDataView trainDataset = mlContext.
Data
.
66
IDataView testDataset = mlContext.
Data
.
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (3)
42
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
43
mlContext.
Data
.LoadFromEnumerable(images));
57
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (3)
42
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
43
mlContext.
Data
.LoadFromEnumerable(images));
57
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
40
var testData = mlContext.
Data
47
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
48
var testData = mlContext.
Data
55
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
43
var testData = mlContext.
Data
50
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
53
var testData = mlContext.
Data
60
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (2)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
40
var testData = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (3)
30
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
46
var testData = mlContext.
Data
53
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
41
var testData = mlContext.
Data
48
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
41
var testData = mlContext.
Data
48
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
24
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (4)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
32
trainingData = mlContext.
Data
.Cache(trainingData);
48
var testData = mlContext.
Data
55
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (4)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
33
trainingData = mlContext.
Data
.Cache(trainingData);
57
var testData = mlContext.
Data
64
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (4)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
32
trainingData = mlContext.
Data
.Cache(trainingData);
48
var testData = mlContext.
Data
55
var predictions = mlContext.
Data
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (4)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
33
trainingData = mlContext.
Data
.Cache(trainingData);
57
var testData = mlContext.
Data
64
var predictions = mlContext.
Data
Dynamic\Trainers\Ranking\FastTree.cs (4)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
37
var testData = mlContext.
Data
.LoadFromEnumerable(
44
var topTransformedTestData = mlContext.
Data
.TakeRows(
48
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (4)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
51
var testData = mlContext.
Data
.LoadFromEnumerable(
58
var topTransformedTestData = mlContext.
Data
.TakeRows(
62
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbm.cs (4)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
37
var testData = mlContext.
Data
.LoadFromEnumerable(
44
var topTransformedTestData = mlContext.
Data
.TakeRows(
48
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (4)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
52
var testData = mlContext.
Data
.LoadFromEnumerable(
59
var topTransformedTestData = mlContext.
Data
.TakeRows(
63
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
23
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (2)
31
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
46
var predictions = mlContext.
Data
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (2)
32
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
70
var predictions = mlContext.
Data
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (3)
37
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
74
var prediction = model.Transform(mlContext.
Data
.LoadFromEnumerable(
77
var results = mlContext.
Data
.CreateEnumerable<MatrixElement>(prediction,
Dynamic\Trainers\Regression\FastForest.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
39
var testData = mlContext.
Data
.LoadFromEnumerable(
46
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
52
var testData = mlContext.
Data
.LoadFromEnumerable(
59
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTree.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
39
var testData = mlContext.
Data
.LoadFromEnumerable(
46
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
39
var testData = mlContext.
Data
.LoadFromEnumerable(
46
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
54
var testData = mlContext.
Data
.LoadFromEnumerable(
61
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
55
var testData = mlContext.
Data
.LoadFromEnumerable(
62
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\Gam.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
39
var testData = mlContext.
Data
.LoadFromEnumerable(
46
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\GamAdvanced.cs (2)
24
var data = mlContext.
Data
.LoadFromEnumerable(samples);
27
var dataSets = mlContext.
Data
.TrainTestSplit(data);
Dynamic\Trainers\Regression\GamWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
50
var testData = mlContext.
Data
.LoadFromEnumerable(
57
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (2)
25
var data = mlContext.
Data
.LoadFromEnumerable(samples);
28
var dataSets = mlContext.
Data
.TrainTestSplit(data);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
37
var testData = mlContext.
Data
.LoadFromEnumerable(
44
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
51
var testData = mlContext.
Data
.LoadFromEnumerable(
58
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbm.cs (3)
27
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
40
var testData = mlContext.
Data
.LoadFromEnumerable(
47
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
30
var split = mlContext.
Data
.TrainTestSplit(dataView, testFraction: 0.1);
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (3)
28
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
59
var testData = mlContext.
Data
.LoadFromEnumerable(
66
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
30
var split = mlContext.
Data
.TrainTestSplit(dataView, testFraction: 0.1);
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
36
var testData = mlContext.
Data
.LoadFromEnumerable(
43
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
51
var testData = mlContext.
Data
.LoadFromEnumerable(
58
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
36
var testData = mlContext.
Data
.LoadFromEnumerable(
43
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (2)
31
var dataView = mlContext.
Data
.LoadFromTextFile(dataFile,
49
var split = mlContext.
Data
.TrainTestSplit(dataView, testFraction: 0.2);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
48
var testData = mlContext.
Data
.LoadFromEnumerable(
55
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (2)
31
var dataView = mlContext.
Data
.LoadFromTextFile(dataFile,
49
var split = mlContext.
Data
.TrainTestSplit(dataView, testFraction: 0.2);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
23
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Trainers\Regression\Sdca.cs (3)
24
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
36
var testData = mlContext.
Data
.LoadFromEnumerable(
43
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (3)
25
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
52
var testData = mlContext.
Data
.LoadFromEnumerable(
59
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Transforms\ApplyOnnxModel.cs (2)
26
var data = mlContext.
Data
.LoadFromEnumerable(samples);
32
var predictions = mlContext.
Data
.CreateEnumerable<Prediction>(
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (2)
34
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
58
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
28
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\CalculateFeatureContribution.cs (2)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
49
var simpleScoredDataset = linearModel.Transform(mlContext.
Data
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (2)
21
var data = mlContext.
Data
.LoadFromEnumerable(samples);
51
var simpleScoredDataset = linearModel.Transform(mlContext.
Data
Dynamic\Transforms\Categorical\OneHotEncoding.cs (1)
27
IDataView data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Categorical\OneHotEncodingMultiColumn.cs (2)
25
IDataView data = mlContext.
Data
.LoadFromEnumerable(samples);
42
mlContext.
Data
.CreateEnumerable<TransformedData>(transformedData,
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (1)
27
IDataView data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Categorical\OneHotHashEncodingMultiColumn.cs (2)
25
IDataView data = mlContext.
Data
.LoadFromEnumerable(samples);
43
mlContext.
Data
.CreateEnumerable<TransformedData>(transformedData,
Dynamic\Transforms\Concatenate.cs (2)
39
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
60
var featuresColumn = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Conversion\ConvertType.cs (2)
20
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
32
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (2)
37
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
57
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Conversion\Hash.cs (2)
25
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
54
var convertedData = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\HashWithOptions.cs (2)
27
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
68
var convertedData = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (3)
26
var trainData = mlContext.
Data
.LoadFromEnumerable(rawData);
56
IEnumerable<TransformedData> defaultData = mlContext.
Data
.
60
IEnumerable<TransformedData> customizedData = mlContext.
Data
.
Dynamic\Transforms\Conversion\MapKeyToBinaryVector.cs (2)
32
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
43
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(examples);
58
transformedData = mlContext.
Data
.TakeRows(transformedData, 5);
59
var values = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Conversion\MapKeyToVector.cs (2)
29
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
56
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\MapKeyToVectorMultiColumn.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
44
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\MapValue.cs (2)
28
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
71
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (3)
29
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
42
var lookupIdvMap = mlContext.
Data
.LoadFromEnumerable(lookupData);
54
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\Conversion\MapValueToArray.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
51
IEnumerable<TransformedData> featuresColumn = mlContext.
Data
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (4)
27
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
42
IEnumerable<TransformedData> features = mlContext.
Data
.CreateEnumerable<
78
var lookupIdvMap = mlContext.
Data
.LoadFromEnumerable(lookupData);
93
features = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\CopyColumns.cs (2)
38
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
56
var rowEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\CustomMapping.cs (2)
27
var data = mlContext.
Data
.LoadFromEnumerable(samples);
47
var dataEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (2)
30
var data = mlContext.
Data
.LoadFromEnumerable(samples);
63
var dataEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (2)
29
var tribeDataView = mlContext.
Data
.LoadFromEnumerable(tribe);
37
var firstAlien = mlContext.
Data
.CreateEnumerable<SuperAlienHero>(
Dynamic\Transforms\DropColumns.cs (3)
38
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
56
var failingRowEnumerable = mlContext.
Data
.CreateEnumerable<
71
var rowEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Expression.cs (2)
29
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
47
var featuresColumn = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
46
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
46
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
44
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (2)
31
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
47
var convertedData = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
34
var data = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (2)
21
var data = mlContext.
Data
.LoadFromEnumerable(images);
33
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
29
var data = mlContext.
Data
.LoadFromEnumerable(dataPoints);
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
33
var data = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
36
var data = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
33
var data = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
33
var data = mlContext.
Data
.CreateTextLoader(new TextLoader.Options()
Dynamic\Transforms\IndicateMissingValues.cs (2)
24
var data = mlContext.
Data
.LoadFromEnumerable(samples);
40
var rowEnumerable = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (2)
28
var data = mlContext.
Data
.LoadFromEnumerable(samples);
48
var rowEnumerable = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\NormalizeBinning.cs (1)
28
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
34
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
25
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeLogMeanVariance.cs (1)
27
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (1)
26
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeLpNorm.cs (1)
26
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeMeanVariance.cs (1)
27
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeMinMax.cs (1)
25
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (1)
42
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\NormalizeSupervisedBinning.cs (1)
37
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
22
var trainData = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
21
var trainData = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\ReplaceMissingValues.cs (3)
28
var data = mlContext.
Data
.LoadFromEnumerable(samples);
44
var defaultRowEnumerable = mlContext.
Data
.CreateEnumerable<
75
var meanRowEnumerable = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (3)
32
var data = mlContext.
Data
.LoadFromEnumerable(samples);
50
var defaultRowEnumerable = mlContext.
Data
.CreateEnumerable<
86
var meanRowEnumerable = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\SelectColumns.cs (2)
38
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
58
var rowEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\StatefulCustomMapping.cs (2)
28
var data = mlContext.
Data
.LoadFromEnumerable(samples);
61
var dataEnumerable = mlContext.
Data
.CreateEnumerable<TransformedData>(
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\FeaturizeText.cs (1)
39
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (1)
40
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
33
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\NormalizeText.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
37
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
40
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
44
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
49
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
24
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\Text\TokenizeIntoWords.cs (1)
23
var emptyDataView = mlContext.
Data
.LoadFromEnumerable(emptySamples);
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (1)
34
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (2)
30
var dataView = ml.
Data
.LoadFromEnumerable(data);
43
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (1)
50
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (2)
54
var dataView = ml.
Data
.LoadFromEnumerable(data);
67
var predictionColumn = ml.
Data
.CreateEnumerable<ChangePointPrediction>(
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (1)
50
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (2)
31
var dataView = ml.
Data
.LoadFromEnumerable(data);
43
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (1)
50
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (2)
48
var dataView = ml.
Data
.LoadFromEnumerable(data);
61
var predictionColumn = ml.
Data
.CreateEnumerable<ChangePointPrediction>(
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (1)
42
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (2)
40
var dataView = ml.
Data
.LoadFromEnumerable(data);
52
var predictionColumn = ml.
Data
.CreateEnumerable<IidSpikePrediction>(
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
21
var dataView = mlContext.
Data
.LoadFromEnumerable(seasonalData);
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (1)
48
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (2)
56
var dataView = ml.
Data
.LoadFromEnumerable(data);
69
var predictionColumn = ml.
Data
.CreateEnumerable<SsaSpikePrediction>(
Dynamic\Transforms\TimeSeries\Forecasting.cs (1)
42
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (1)
42
var dataView = ml.
Data
.LoadFromEnumerable(data);
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
82
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
83
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
84
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
80
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
83
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (3)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
35
dataView = mlContext.
Data
.Cache(dataView);
83
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (2)
27
var dataView = mlContext.
Data
.LoadFromEnumerable(dataPoints);
73
var transformedDataPoints = mlContext.
Data
.CreateEnumerable<
Dynamic\WithOnFitDelegate.cs (1)
36
var data = mlContext.
Data
.LoadFromEnumerable(samples);
Microsoft.ML.Samples.GPU (15)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
39
var idv = mlContext.
Data
.LoadFromEnumerable(data);
52
var outScores = mlContext.
Data
.CreateEnumerable<OutputScores>(
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (2)
42
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
45
var lookupMap = mlContext.
Data
.LoadFromTextFile(Path.Combine(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (3)
43
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
44
mlContext.
Data
.LoadFromEnumerable(images));
58
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
47
IDataView trainDataset = mlContext.
Data
.
66
IDataView testDataset = mlContext.
Data
.
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (3)
42
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
43
mlContext.
Data
.LoadFromEnumerable(images));
57
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (3)
42
IDataView shuffledFullImagesDataset = mlContext.
Data
.ShuffleRows(
43
mlContext.
Data
.LoadFromEnumerable(images));
57
TrainTestData trainTestData = mlContext.
Data
.TrainTestSplit(
Microsoft.ML.Samples.OneDal (1)
Program.cs (1)
39
var loader = mlContext.
Data
.CreateTextLoader(
Microsoft.ML.SamplesUtils (2)
SamplesDatasetUtils.cs (2)
50
var loader = mlContext.
Data
.CreateTextLoader(
126
var loader = mlContext.
Data
.CreateTextLoader(
Microsoft.ML.TensorFlow.Tests (40)
TensorFlowEstimatorTests.cs (8)
64
var dataView = ML.
Data
.LoadFromEnumerable(
84
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
85
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
86
var invalidDataWrongVectorSize = ML.
Data
.LoadFromEnumerable(sizeData);
105
var dataView = ML.
Data
.LoadFromEnumerable(
156
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
198
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
249
var data = ML.
Data
.LoadFromTextFile(dataFile, new[] {
TensorflowTests.cs (32)
188
var loader = _mlContext.
Data
.LoadFromEnumerable(
287
var loader = _mlContext.
Data
.LoadFromEnumerable(data);
409
var loader = _mlContext.
Data
.LoadFromEnumerable(data);
541
var reader = _mlContext.
Data
.CreateTextLoader(
654
var reader = _mlContext.
Data
.CreateTextLoader(
698
var reader = _mlContext.
Data
.CreateTextLoader(columns: new[]
787
var reader = _mlContext.
Data
.CreateTextLoader(new[]
880
var reader = _mlContext.
Data
.CreateTextLoader(columns: new[]
1011
var data = _mlContext.
Data
.LoadFromTextFile(dataFile,
1070
var data = _mlContext.
Data
.LoadFromTextFile(dataFile, columns: new[]
1115
var dataView = _mlContext.
Data
.LoadFromEnumerable<InMemoryImage>(dataObjects);
1223
var data = _mlContext.
Data
.LoadFromTextFile(dataFile,
1264
var dataView = _mlContext.
Data
.LoadFromEnumerable(data);
1266
var lookupMap = _mlContext.
Data
.LoadFromTextFile(@"sentiment_model/imdb_word_index.csv",
1348
var dataview = _mlContext.
Data
.CreateTextLoader<TextInput>().Load(new MultiFileSource(null));
1377
var dataview = _mlContext.
Data
.CreateTextLoader<PrimitiveInput>().Load(new MultiFileSource(null));
1403
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
1404
_mlContext.
Data
.LoadFromEnumerable(images), seed: 1);
1412
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
1478
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
1479
_mlContext.
Data
.LoadFromEnumerable(images), seed: 1);
1487
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
1610
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
1611
_mlContext.
Data
.LoadFromEnumerable(images), seed: 1);
1619
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
1765
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
1766
_mlContext.
Data
.LoadFromEnumerable(images), seed: 1);
1774
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
1854
IDataView shuffledFullImagesDataset = _mlContext.
Data
.ShuffleRows(
1855
_mlContext.
Data
.LoadFromEnumerable(images), seed: 1);
1864
TrainTestData trainTestData = _mlContext.
Data
.TrainTestSplit(
2053
IDataView data = _mlContext.
Data
.LoadFromTextFile(dataFile, new[] {
Microsoft.ML.TestFramework (5)
DataPipe\TestDataPipeBase.cs (1)
424
var loadedData = ML.
Data
.LoadFromTextFile(pathData, options: args);
TestSparseDataView.cs (4)
51
var data = env.
Data
.LoadFromEnumerable(inputs);
65
var iter = env.
Data
.CreateEnumerable<SparseExample<T>>(data, false).GetEnumerator();
91
var data = env.
Data
.LoadFromEnumerable(inputs);
105
var iter = env.
Data
.CreateEnumerable<DenseExample<T>>(data, false).GetEnumerator();
Microsoft.ML.Tests (577)
AnomalyDetectionTests.cs (6)
151
var data = mlContext.
Data
.LoadFromEnumerable(samples);
160
var results = mlContext.
Data
.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList();
195
var data = mlContext.
Data
.LoadFromEnumerable(samples);
206
var results = mlContext.
Data
.CreateEnumerable<Result>(transformed, reuseRowObject: false).ToList();
239
var loader = ML.
Data
.CreateTextLoader(new[]
275
var data = mlContext.
Data
.LoadFromEnumerable(samples);
BinaryLoaderSaverTests.cs (2)
24
var data = ML.
Data
.LoadFromBinary(GetDataPath("schema-codec-test.idv"));
30
ML.
Data
.SaveAsText(data, fs, headerRow: false);
CachingTests.cs (5)
49
pipe.Fit(ML.
Data
.LoadFromEnumerable(trainData));
59
pipe.Fit(ML.
Data
.LoadFromEnumerable(trainData));
84
var data = ML.
Data
.LoadFromEnumerable(src);
90
data = ML.
Data
.LoadFromEnumerable(src);
91
data = ML.
Data
.Cache(data);
CollectionsDataViewTest.cs (18)
160
var dataView = env.
Data
.LoadFromEnumerable(data);
161
var enumeratorSimple = env.
Data
.CreateEnumerable<ConversionSimpleClass>(dataView, false).GetEnumerator();
191
var dataView = env.
Data
.LoadFromEnumerable(data);
192
var enumerator = env.
Data
.CreateEnumerable<ConversionNotSupportedMinValueClass>(dataView, false).GetEnumerator();
234
var dataView = env.
Data
.LoadFromEnumerable(data);
235
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithConstField>(dataView, false).GetEnumerator();
260
var dataView = env.
Data
.LoadFromEnumerable(data);
261
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithMixOfFieldsAndProperties>(dataView, false).GetEnumerator();
314
var dataView = env.
Data
.LoadFromEnumerable(data);
315
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithPrivateFieldsAndProperties>(dataView, false).GetEnumerator();
344
var dataView = env.
Data
.LoadFromEnumerable(data);
345
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithInheritedProperties>(dataView, false).GetEnumerator();
395
var dataView = env.
Data
.LoadFromEnumerable(data);
396
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithArrays>(dataView, false).GetEnumerator();
446
var dataView = env.
Data
.LoadFromEnumerable(data);
447
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithArrayProperties>(dataView, false).GetEnumerator();
483
var dataView = env.
Data
.LoadFromEnumerable(data);
484
var enumeratorSimple = env.
Data
.CreateEnumerable<ClassWithSetter>(dataView, false).GetEnumerator();
DatabaseLoaderTests.cs (6)
63
var loader = mlContext.
Data
.CreateDatabaseLoader(loaderColumns);
99
var loader = mlContext.
Data
.CreateDatabaseLoader<IrisDataWithLoadColumnName>();
135
var loader = mlContext.
Data
.CreateDatabaseLoader<IrisVectorData>();
167
var loader = mlContext.
Data
.CreateDatabaseLoader<IrisVectorDataWithLoadColumnName>();
199
var loader = mlContext.
Data
.CreateDatabaseLoader<IrisData>();
258
var loader = mlContext.
Data
.CreateDatabaseLoader(new DatabaseLoader.Column("datetime", DbType.DateTime, 0));
EvaluateTests.cs (2)
47
var inputDV = mlContext.
Data
.LoadFromEnumerable(inputArray);
64
var inputDV2 = mlContext.
Data
.LoadFromEnumerable(inputArray2);
FeatureContributionTests.cs (3)
243
var savedData = ML.
Data
.TakeRows(estimator.Fit(data).Transform(data), 4);
418
IDataView trainingDataView = ML.
Data
.LoadFromTextFile<TaxiTrip>(trainDataPath, hasHeader: true, separatorChar: ',');
434
var someRows = ML.
Data
.TakeRows(trainingDataView, numberOfInstances);
ImagesTests.cs (5)
236
var data = ML.
Data
.LoadFromEnumerable(images);
248
var transformedDataPoints = ML.
Data
.CreateEnumerable<ImageDataPoint>(transformedData, false);
1091
var data = mlContext.
Data
.LoadFromEnumerable(dataPoints);
1129
var tsvFile = mlContext.
Data
.LoadFromTextFile(tsvPath, columns: new[]
1182
var dataView = mlContext.
Data
.LoadFromEnumerable<InMemoryImage>(dataObjects);
OnnxConversionTest.cs (53)
71
var data = mlContext.
Data
.LoadFromTextFile<AdultData>(trainDataPath,
75
var cachedTrainData = mlContext.
Data
.Cache(data);
149
var data = mlContext.
Data
.LoadFromTextFile<BreastCancerFeatureVector>(dataPath,
182
var dataView = mlContext.
Data
.LoadFromTextFile<AdultData>(dataPath,
222
var dataView = mlContext.
Data
.LoadFromTextFile<BreastCancerBinaryClassification>(dataPath, separatorChar: '\t', hasHeader: false);
262
var dataView = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
280
var dataView = ML.
Data
.LoadFromTextFile<BreastCancerBinaryClassification>(dataPath, separatorChar: '\t', hasHeader: true);
319
IDataView dataSoloCalibrator = ML.
Data
.LoadFromEnumerable(GetCalibratorTestData());
324
IDataView dataSoloCalibratorNonStandard = ML.
Data
.LoadFromEnumerable(GetCalibratorTestDataNonStandard());
386
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
423
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
477
mlContext.
Data
.LoadFromTextFile(filePath, columnsScalar, separatorChar: '\t'), //scalar
478
mlContext.
Data
.LoadFromTextFile(filePath, columnsVector , separatorChar: '\t') //vector
567
var data = mlContext.
Data
.LoadFromTextFile<AdultData>(trainDataPath,
571
var cachedTrainData = mlContext.
Data
.Cache(data);
598
var data = mlContext.
Data
.LoadFromTextFile<AdultData>(trainDataPath,
602
var cachedTrainData = mlContext.
Data
.Cache(data);
624
var data = mlContext.
Data
.LoadFromTextFile<BreastCancerMulticlassExample>(dataPath,
769
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
788
var data = mlContext.
Data
.LoadFromTextFile<BreastCancerCatFeatureExample>(dataPath,
851
var data = mlContext.
Data
.LoadFromTextFile<SmallSentimentExample>(dataPath, separatorChar: '\t', hasHeader: false);
870
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
947
var dataView = mlContext.
Data
.LoadFromTextFile(filePath, columns);
967
var dataView = mlContext.
Data
.LoadFromTextFile(dataSource, new[] {
1004
var dataView = mlContext.
Data
.LoadFromTextFile<BreastCancerCatFeatureExample>(dataPath);
1034
var data = ML.
Data
.LoadFromTextFile(dataFile, new[]
1074
var dataView = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
1125
var dataView = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
1160
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
1202
mlContext.
Data
.LoadFromTextFile(filePath, columnsScalar, separatorChar: '\t'), //scalar
1203
mlContext.
Data
.LoadFromTextFile(filePath, columnsVector , separatorChar: '\t') //vector
1240
mlContext.
Data
.LoadFromTextFile(filePath, columnsScalar, separatorChar: '\t'), //scalar
1241
mlContext.
Data
.LoadFromTextFile(filePath, columnsVector , separatorChar: '\t') //vector
1404
mlContext.
Data
.LoadFromTextFile(filePath, columnsScalar, separatorChar: '\t'), //scalar
1405
mlContext.
Data
.LoadFromTextFile(filePath, columnsVector , separatorChar: '\t') //vector
1446
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
1474
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
1552
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
1576
var dataView = mlContext.
Data
.LoadFromEnumerable(samples);
1603
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
1647
var dataView = mlContext.
Data
.LoadFromTextFile<BreastCancerMulticlassExample>(dataPath, separatorChar: '\t', hasHeader: false);
1701
var dataView = mlContext.
Data
.LoadFromTextFile<AdultData>(trainDataPath,
1719
var dataView = mlContext.
Data
.LoadFromTextFile<AdultData>(trainDataPath,
1762
var loader = mlContext.
Data
.CreateTextLoader(
1781
mlContext.
Data
.SaveAsBinary(mappedData, stream, keepHidden: false);
1788
IDataView reloadedData = mlContext.
Data
.LoadFromBinary(mappedDataPath);
1847
var dataView = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
1886
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
1933
var dataView = mlContext.
Data
.LoadFromTextFile<BreastCancerBinaryClassificationNonDefaultColNames>(dataPath, separatorChar: '\t', hasHeader: false);
1974
var dataView = mlContext.
Data
.LoadFromTextFile<BreastCancerMulticlassExampleNonDefaultColNames>(dataPath, separatorChar: '\t', hasHeader: false);
2025
var dataView = ML.
Data
.LoadFromTextFile<BreastCancerCatFeatureExample>(dataPath);
2186
var dataView = ML.
Data
.LoadFromEnumerable(data, schemaDefinition);
2223
var dataView = ML.
Data
.LoadFromEnumerable(data, schemaDefinition);
OnnxSequenceTypeWithAttributesTest.cs (2)
44
var dataView = ctx.
Data
.LoadFromEnumerable(new List<FloatInput>());
83
var dataView = ctx.
Data
.LoadFromEnumerable(new List<FloatInput>());
PermutationFeatureImportanceTests.cs (1)
489
var data = ML.
Data
.LoadFromTextFile(dataPath,
RangeFilterTests.cs (2)
27
var data1 = ML.
Data
.FilterRowsByColumn(data, "Floats", upperBound: 2.8);
32
var data2 = ML.
Data
.FilterRowsByKeyColumnFraction(data, "Key", upperBound: 0.15);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (22)
41
var data = mlContext.
Data
.LoadFromTextFile<InspectedRow>(dataPath,
56
.
Data
.CreateEnumerable<InspectedRowWithAllFeatures>(transformedData, reuseRowObject: false)
94
var data = mlContext.
Data
.LoadFromEnumerable(samples);
151
var trainData = mlContext.
Data
.LoadFromTextFile<RegressionData>(trainDataPath,
162
var cachedTrainData = mlContext.
Data
.Cache(trainData);
187
var testData = mlContext.
Data
.LoadFromTextFile<RegressionData>(testDataPath,
219
var trainData = mlContext.
Data
.LoadFromTextFile<IrisInput>(irisDataPath,
304
var trainData = mlContext.
Data
.LoadFromTextFile<IrisInputAllFeatures>(dataPath,
334
IDataView data = context.
Data
.LoadFromTextFile(dataPath, new[]
374
IDataView data = context.
Data
.LoadFromTextFile(dataPath, new[]
409
IDataView data = context.
Data
.LoadFromTextFile(dataPath, new[]
445
IDataView data = context.
Data
.LoadFromTextFile(dataPath, new[]
476
var shuffledSubset = context.
Data
.TakeRows(context.
Data
.ShuffleRows(featureContributionData), 10);
477
var scoringEnumerator = context.
Data
.CreateEnumerable<HousingData>(shuffledSubset, true);
504
var loader = mlContext.
Data
.CreateTextLoader(new[]
573
var loader = mlContext.
Data
.CreateTextLoader(new[]
636
var data = mlContext.
Data
.LoadFromTextFile<IrisInput>(dataPath,
655
var split = mlContext.
Data
.TrainTestSplit(data, testFraction: 0.1);
685
var loader = mlContext.
Data
.LoadFromTextFile<RegressionData>(dataPath,
706
var data = mlContext.
Data
.LoadFromTextFile(GetDataPath("adult.tiny.with-schema.txt"), new[]
746
var cachedTrainData = mlContext.
Data
.Cache(trainData);
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (3)
31
var data = ml.
Data
.LoadFromTextFile<IrisData>(dataPath, separatorChar: ',');
42
var testLoader = ml.
Data
.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',', hasHeader: true);
43
var testData = ml.
Data
.CreateEnumerable<IrisData>(testLoader, false);
Scenarios\Api\Estimators\Extensibility.cs (3)
30
var data = ml.
Data
.CreateTextLoader(TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',')
51
var testLoader = ml.
Data
.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',');
52
var testData = ml.
Data
.CreateEnumerable<IrisData>(testLoader, false);
Scenarios\Api\Estimators\MultithreadedPrediction.cs (3)
28
var data = ml.
Data
.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true);
43
var testData = ml.
Data
.CreateEnumerable<SentimentData>(
44
ml.
Data
.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.testFilename), hasHeader: true), false);
Scenarios\Api\Estimators\PredictAndMetadata.cs (5)
29
var data = ml.
Data
.LoadFromTextFile<IrisData>(dataPath, separatorChar: ',');
39
var testLoader = ml.
Data
.LoadFromTextFile(dataPath, TestDatasets.irisData.GetLoaderColumns(), separatorChar: ',', hasHeader: true);
40
var testData = ml.
Data
.CreateEnumerable<IrisData>(testLoader, false);
78
var data = mlContext.
Data
.LoadFromTextFile<IrisData>(dataPath, separatorChar: ',');
99
var dataReader = mlContext.
Data
.CreateTextLoader(
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (6)
26
var data = ml.
Data
.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true);
41
var testData = ml.
Data
.CreateEnumerable<SentimentData>(
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);
80
var testData = ml.
Data
.CreateEnumerable<SentimentData>(
81
ml.
Data
.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.testFilename), hasHeader: true), false);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (2)
25
var data = ml.
Data
.LoadFromTextFile<SentimentData>(GetDataPath(TestDatasets.Sentiment.trainFilename), hasHeader: true);
32
var trainData = ml.
Data
.Cache(pipeline.Fit(data).Transform(data));
Scenarios\Api\TestApi.cs (29)
69
var idv1 = env.
Data
.LoadFromEnumerable(data1);
82
var idv2 = env.
Data
.LoadFromEnumerable(data2);
103
var idv3 = env.
Data
.LoadFromEnumerable(data3);
128
var idv4 = env.
Data
.LoadFromEnumerable(Utils.CreateArray(10, example4));
153
var idv = env.
Data
.LoadFromEnumerable(data);
161
var applied = env.
Data
.LoadFromEnumerable(data);
183
var cached = mlContext.
Data
.Cache(xf);
229
var idv = mlContext.
Data
.LoadFromEnumerable(data, autoSchema);
301
var fullInput = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
308
var ttSplit = mlContext.
Data
.TrainTestSplit(fullInput);
309
var ttSplitWithSeed = mlContext.
Data
.TrainTestSplit(fullInput, seed: 10);
310
var ttSplitWithSeedAndSamplingKey = mlContext.
Data
.TrainTestSplit(fullInput, seed: 10, samplingKeyColumnName: "Workclass");
312
var cvSplit = mlContext.
Data
.CrossValidationSplit(fullInput);
313
var cvSplitWithSeed = mlContext.
Data
.CrossValidationSplit(fullInput, seed: 10);
314
var cvSplitWithSeedAndSamplingKey = mlContext.
Data
.CrossValidationSplit(fullInput, seed: 10, samplingKeyColumnName: "Workclass");
349
var input = mlContext.
Data
.LoadFromTextFile(dataPath, new[] {
364
var simpleSplit = mlContext.
Data
.TrainTestSplit(input);
365
var splitWithSeed = mlContext.
Data
.TrainTestSplit(input, seed: 10);
377
var stratSplit = mlContext.
Data
.TrainTestSplit(input, samplingKeyColumnName: "Workclass");
389
var stratSeed = mlContext.
Data
.TrainTestSplit(input, samplingKeyColumnName: "Workclass", seed: 1000000);
419
var input = mlContext.
Data
.LoadFromEnumerable(new[]
456
var split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.TextStrat));
460
split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.FloatStrat));
464
split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.VectorStrat));
468
split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.DateTimeStrat));
472
split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.DateTimeOffsetStrat));
476
split = mlContext.
Data
.TrainTestSplit(input, 0.5, nameof(Input.TimeSpanStrat));
482
split = mlContext.
Data
.TrainTestSplit(inputWithKey, 0.5, "KeyStrat");
500
var cvSplits = mlContext.
Data
.CrossValidationSplit(inputWithKey, numberOfFolds: 2, samplingKeyColumnName: colname);
Scenarios\ClusteringTests.cs (2)
62
var trainData = mlContext.
Data
.LoadFromEnumerable(data);
63
var testData = mlContext.
Data
.LoadFromEnumerable(clusters);
Scenarios\GetColumnTests.cs (3)
29
var data = mlContext.
Data
.LoadFromTextFile(path, new[] {
52
var data1 = mlContext.
Data
.LoadFromTextFile(path, new[] {
71
var data = mlContext.
Data
.LoadFromTextFile(path, new[] {
Scenarios\IrisPlantClassificationTests.cs (1)
22
var reader = mlContext.
Data
.CreateTextLoader(columns: new[]
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
18
var reader = mlContext.
Data
.CreateTextLoader(columns: new[]
Scenarios\OvaTest.cs (4)
32
var data = mlContext.
Data
.Cache(mlContext.Transforms.Conversion.MapValueToKey("Label")
66
var data = mlContext.
Data
.Cache(mlContext.Transforms.Conversion.MapValueToKey("Label")
102
var data = mlContext.
Data
.Cache(mlContext.Transforms.Conversion.MapValueToKey("Label")
136
var data = mlContext.
Data
.Cache(mlContext.Transforms.Conversion.MapValueToKey("Label")
Scenarios\RegressionTest.cs (3)
20
context.
Data
.LoadFromTextFile<FeatureContributionTests.TaxiTrip>(taxiDataPath, hasHeader: true,
23
var splitData = context.
Data
.TrainTestSplit(taxiData, testFraction: 0.1);
25
IDataView trainingDataView = context.
Data
.FilterRowsByColumn(splitData.TrainSet, "FareAmount", lowerBound: 1, upperBound: 150);
Scenarios\WordBagTest.cs (2)
30
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
67
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
20
var reader = mlContext.
Data
.CreateTextLoader(columns: new[]
SvmLightTests.cs (37)
43
var data = ML.
Data
.LoadFromSvmLightFile(path, inputSize: inputSize, zeroBased: zeroBased, numberOfRows: numberOfRows);
50
ML.
Data
.SaveInSvmLightFormat(expectedData, stream, zeroBasedIndexing: zeroBased, exampleWeightColumnName: "Weight");
51
data = ML.
Data
.LoadFromSvmLightFile(savingPath, inputSize: inputSize, zeroBased: zeroBased);
77
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
105
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
134
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
155
var model = ML.
Data
.CreateSvmLightLoaderWithFeatureNames(dataSample: new MultiFileSource(path));
164
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
175
ML.
Data
.SaveInSvmLightFormat(expectedData, stream, zeroBasedIndexing: true, rowGroupColumnName: "GroupId");
176
data = ML.
Data
.LoadFromSvmLightFile(outputPath, zeroBased: true);
188
expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
198
ML.
Data
.SaveInSvmLightFormat(expectedData, stream);
199
data = ML.
Data
.LoadFromSvmLightFile(outputPath);
207
var data = ML.
Data
.LoadFromSvmLightFileWithFeatureNames(path);
212
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
221
ML.
Data
.SaveInSvmLightFormat(expectedData, stream, zeroBasedIndexing: true);
222
data = ML.
Data
.LoadFromSvmLightFile(outputPath, zeroBased: true);
238
var view = ML.
Data
.LoadFromSvmLightFileWithFeatureNames(path);
258
var data = ML.
Data
.LoadFromSvmLightFile(path);
277
var data = ML.
Data
.LoadFromSvmLightFile(path);
307
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
325
var data = ML.
Data
.LoadFromSvmLightFile(path);
349
var data = ML.
Data
.LoadFromSvmLightFile(path);
368
data = ML.
Data
.LoadFromSvmLightFile(path);
387
data = ML.
Data
.LoadFromSvmLightFile(path);
406
ex = Assert.Throws<InvalidOperationException>(() => ML.
Data
.LoadFromSvmLightFile(path));
419
var loader = ML.
Data
.CreateSvmLightLoader(inputSize: 4);
432
loader = ML.
Data
.CreateSvmLightLoader(inputSize: 3);
443
var ex = Assert.Throws<InvalidOperationException>(() => ML.
Data
.CreateSvmLightLoader());
445
ex = Assert.Throws<InvalidOperationException>(() => ML.
Data
.CreateSvmLightLoaderWithFeatureNames());
464
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
491
var expectedData = ML.
Data
.LoadFromEnumerable(new SvmLightOutput[]
506
var loader = ML.
Data
.CreateTextLoader(new[] { new TextLoader.Column("Column", DataKind.Single, 0) });
511
ML.
Data
.SaveInSvmLightFormat(loader.Load(new MultiFileSource(null)), stream);
519
ML.
Data
.SaveInSvmLightFormat(loader.Load(new MultiFileSource(null)), stream, labelColumnName: "Column");
527
ML.
Data
.SaveInSvmLightFormat(loader.Load(new MultiFileSource(null)), stream, labelColumnName: "Column", featureColumnName: "Column", rowGroupColumnName: "Group");
535
ML.
Data
.SaveInSvmLightFormat(loader.Load(new MultiFileSource(null)), stream, labelColumnName: "Column", featureColumnName: "Column", exampleWeightColumnName: "Weight");
TermEstimatorTests.cs (6)
81
data = ML.
Data
.TakeRows(data, 10);
101
var dataView = ML.
Data
.LoadFromEnumerable(data);
107
var invalidData = ML.
Data
.LoadFromEnumerable(xydata);
108
var validFitNotValidTransformData = ML.
Data
.LoadFromEnumerable(stringData);
116
var dataView = ML.
Data
.LoadFromEnumerable(data);
138
var dataView = ML.
Data
.LoadFromEnumerable(data);
TextLoaderTests.cs (30)
584
var ex = Assert.Throws<ArgumentOutOfRangeException>(() => mlContext.
Data
.LoadFromTextFile<ModelWithoutColumnAttribute>("fakefile.txt"));
597
var data = mlContext.
Data
.LoadFromTextFile(combinedPath);
601
var data2 = mlContext.
Data
.LoadFromTextFile<Input>(combinedPath);
611
var loader = mlContext.
Data
.CreateTextLoader(new TextLoader.Options(), new MultiFileSource(fileName));
746
dataIris = mlContext.
Data
.CreateTextLoader<Iris>(new TextLoader.Options() { Separator = ",", AllowQuoting = false }).Load(dataPath);
748
dataIris = mlContext.
Data
.CreateTextLoader<Iris>(separatorChar: ',').Load(dataPath);
767
dataIrisStartEnd = mlContext.
Data
.CreateTextLoader<IrisStartEnd>(new TextLoader.Options() { Separator = ",", AllowQuoting = false }).Load(dataPath);
769
dataIrisStartEnd = mlContext.
Data
.CreateTextLoader<IrisStartEnd>(separatorChar: ',').Load(dataPath);
789
dataIrisColumnIndices = mlContext.
Data
.CreateTextLoader<IrisColumnIndices>(new TextLoader.Options() { Separator = ",", AllowQuoting = false }).Load(dataPath);
791
dataIrisColumnIndices = mlContext.
Data
.CreateTextLoader<IrisColumnIndices>(separatorChar: ',').Load(dataPath);
1066
dataViewPeriod = mlContext.
Data
.LoadFromTextFile(periodPath, optionsPeriod);
1068
dataViewPeriod = mlContext.
Data
.LoadFromTextFile(commaPath, optionsPeriod);
1071
dataViewComma = mlContext.
Data
.LoadFromTextFile(commaPath, optionsComma);
1073
dataViewComma = mlContext.
Data
.LoadFromTextFile(periodPath, optionsComma);
1186
var dataIris = mlContext.
Data
.CreateTextLoader<IrisPublicGetProperties>(separatorChar: ',').Load(dataPath);
1187
var oneIrisData = mlContext.
Data
.CreateEnumerable<IrisPublicProperties>(dataIris, false).First();
1191
dataIris = mlContext.
Data
.CreateTextLoader<IrisPublicFields>(separatorChar: ',').Load(dataPath);
1192
oneIrisData = mlContext.
Data
.CreateEnumerable<IrisPublicProperties>(dataIris, false).First();
1198
dataIris = mlContext.
Data
.CreateTextLoader<IrisNoFields>(separatorChar: ',').Load(dataPath);
1209
dataIris = mlContext.
Data
.CreateTextLoader<IrisPrivateFields>(separatorChar: ',').Load(dataPath);
1244
var data = mlContext.
Data
.CreateTextLoader<BreastCancerInputModelWithKeyType>(separatorChar: ',').Load(breastCancerPath);
1256
var data = mlContext.
Data
.CreateTextLoader<BreastCancerInputModelWithoutKeyType>(separatorChar: ',').Load(breastCancerPath);
1292
var data = mlContext.
Data
.LoadFromTextFile(dataPath, options);
1307
mlContext.
Data
.SaveAsText(data, fs, separatorChar: '\t');
1311
data = mlContext.
Data
.LoadFromTextFile(savedPath, options);
1403
var data = mlContext.
Data
.LoadFromTextFile(filePath, options);
1458
baselineDV = mlContext.
Data
.LoadFromTextFile(baselineWithImpute, options);
1460
testDV = mlContext.
Data
.LoadFromTextFile(inputPath, options);
1464
baselineDV = mlContext.
Data
.LoadFromTextFile(baselineWithoutImpute, options);
1465
testDV = mlContext.
Data
.LoadFromTextFile(inputPath, options);
TrainerEstimators\CalibratorEstimators.cs (3)
154
mlContext.
Data
.LoadFromEnumerable<CalibratorTestInputReversedOrder>(
160
mlContext.
Data
.LoadFromEnumerable<CalibratorTestInputUniqueScoreColumnName>(
166
mlContext.
Data
.LoadFromEnumerable<CalibratorTestInputReversedOrderAndUniqueScoreColumnName>(
TrainerEstimators\FAFMEstimator.cs (2)
23
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
44
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
TrainerEstimators\MatrixFactorizationTests.cs (21)
212
var dataView = ML.
Data
.LoadFromEnumerable(dataMatrix);
259
var testDataView = mlContext.
Data
.LoadFromEnumerable(testMatrix);
262
foreach (var pred in mlContext.
Data
.CreateEnumerable<MatrixElementForScore>(model.Transform(testDataView), false))
323
var dataView = ML.
Data
.LoadFromEnumerable(dataMatrix);
364
foreach (var pred in mlContext.
Data
.CreateEnumerable<MatrixElementZeroBasedForScore>(prediction, false))
379
var invalidTestDataView = mlContext.
Data
.LoadFromEnumerable(invalidTestMatrix);
384
foreach (var pred in mlContext.
Data
.CreateEnumerable<MatrixElementZeroBasedForScore>(invalidPrediction, false))
443
var dataView = ML.
Data
.LoadFromEnumerable(dataMatrix);
486
var testDataView = ML.
Data
.LoadFromEnumerable(testDataMatrix);
491
var testResults = mlContext.
Data
.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList();
558
var testDataView = ML.
Data
.LoadFromEnumerable(testDataMatrix);
563
var testResults = mlContext.
Data
.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList();
587
var dataView = ML.
Data
.LoadFromEnumerable(dataMatrix);
628
var testDataView = ML.
Data
.LoadFromEnumerable(testDataMatrix);
633
var testResults = mlContext.
Data
.CreateEnumerable<OneClassMatrixElementZeroBasedForScore>(testPrediction, false).ToList();
653
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
679
var prediction = model.Transform(mlContext.
Data
.LoadFromEnumerable(testData));
681
var results = mlContext.
Data
.CreateEnumerable<OneClassMatrixElement>(prediction, false).ToList();
770
var dataView = ML.
Data
.LoadFromEnumerable(dataMatrix);
809
var testData = ML.
Data
.LoadFromEnumerable(testMatrix);
815
var predictions = mlContext.
Data
.CreateEnumerable<MatrixElementZeroBasedForScore256By256>(transformedTestData, false).ToList();
TrainerEstimators\OneDalEstimators.cs (1)
40
var loader = ML.
Data
.CreateTextLoader(columns: new[] {
TrainerEstimators\OnlineLinearTests.cs (2)
20
var regressionData = ML.
Data
.LoadFromTextFile(dataPath, new[] {
34
var binaryData = ML.
Data
.LoadFromTextFile(dataPath, new[] {
TrainerEstimators\SdcaTests.cs (16)
21
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
26
data = ML.
Data
.Cache(data);
67
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
71
data = mlContext.
Data
.Cache(data);
88
var rawPrediction = mlContext.
Data
.CreateEnumerable<SamplesUtils.DatasetUtils.CalibratedBinaryClassifierOutput>(prediction, false);
111
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
115
data = mlContext.
Data
.Cache(data);
167
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
171
data = mlContext.
Data
.Cache(data);
226
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
230
data = mlContext.
Data
.Cache(data);
247
var rawPrediction = mlContext.
Data
.CreateEnumerable<SamplesUtils.DatasetUtils.NonCalibratedBinaryClassifierOutput>(prediction, false);
268
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
272
data = mlContext.
Data
.Cache(data);
303
var data = mlContext.
Data
.LoadFromEnumerable(rawData);
307
data = mlContext.
Data
.Cache(data);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (28)
22
var dataView = ML.
Data
.LoadFromEnumerable(data);
129
var dataView = ML.
Data
.LoadFromEnumerable(data);
181
var dataView = ML.
Data
.LoadFromEnumerable(data);
235
var dataView = ML.
Data
.LoadFromEnumerable(data);
236
dataView = ML.
Data
.Cache(dataView);
303
var dataView = ML.
Data
.LoadFromEnumerable(data);
304
dataView = ML.
Data
.Cache(dataView);
354
var dataView = ML.
Data
.LoadFromEnumerable(data);
355
dataView = ML.
Data
.Cache(dataView);
393
var dataView = ML.
Data
.LoadFromEnumerable(data);
394
dataView = ML.
Data
.Cache(dataView);
432
var dataView = ML.
Data
.LoadFromEnumerable(data);
433
dataView = ML.
Data
.Cache(dataView);
470
var dataView = ML.
Data
.LoadFromEnumerable(data);
471
dataView = ML.
Data
.Cache(dataView);
508
var dataView = ML.
Data
.LoadFromEnumerable(data);
509
dataView = ML.
Data
.Cache(dataView);
546
var dataView = ML.
Data
.LoadFromEnumerable(data);
547
dataView = ML.
Data
.Cache(dataView);
584
var dataView = ML.
Data
.LoadFromEnumerable(data);
585
dataView = ML.
Data
.Cache(dataView);
639
var dataView = ML.
Data
.LoadFromEnumerable(data);
640
dataView = ML.
Data
.Cache(dataView);
713
var dataView = ML.
Data
.LoadFromEnumerable(data);
714
dataView = ML.
Data
.Cache(dataView);
771
var dataView = ML.
Data
.LoadFromEnumerable(data);
772
dataView = ML.
Data
.Cache(dataView);
799
var split = ML.
Data
.TrainTestSplit(dataView, 0.5);
TrainerEstimators\TreeEstimators.cs (7)
461
var dataView = mlContext.
Data
.LoadFromEnumerable(dataList);
476
mlnetPredictions = mlContext.
Data
.CreateEnumerable<GbmExample>(predicted, false).ToList();
752
var trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
759
trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
766
trainingData = mlContext.
Data
.LoadFromEnumerable(dataPoints);
875
summaryDataEnumerable = ML.
Data
.CreateEnumerable<SummaryDataRow>(summaryDataView, false);
877
summaryDataEnumerable = ML.
Data
.CreateEnumerable<QuantileTestSummaryDataRow>(summaryDataView, false);
Transformers\CategoricalHashTests.cs (8)
51
var dataView = ML.
Data
.LoadFromEnumerable(data);
72
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
81
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
88
var invalidData = ML.
Data
.LoadFromEnumerable(wrongCollection);
102
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
105
ML.
Data
.SaveAsText(view, fs, headerRow: true, keepHidden: true);
119
var dataView = ML.
Data
.LoadFromEnumerable(data);
224
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\CategoricalTests.cs (10)
70
var dataView = ML.
Data
.LoadFromEnumerable(data);
91
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
108
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
131
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
157
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
163
var invalidData = ML.
Data
.LoadFromEnumerable(wrongCollection);
174
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
177
ML.
Data
.SaveAsText(view, fs, headerRow: true, keepHidden: true);
192
var dataView = ML.
Data
.LoadFromEnumerable(data);
318
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\CharTokenizeTests.cs (3)
41
var dataView = ML.
Data
.LoadFromEnumerable(data);
43
var invalidDataView = ML.
Data
.LoadFromEnumerable(invalidData);
61
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\ConcatTests.cs (2)
70
data = ML.
Data
.TakeRows(data, 10);
122
data = ML.
Data
.TakeRows(data, 10);
Transformers\ConvertTests.cs (9)
129
var dataView = ML.
Data
.LoadFromEnumerable(data);
168
var allTypesDataView = ML.
Data
.LoadFromEnumerable(allTypesData);
248
var expectedConvertedValues = ML.
Data
.LoadFromEnumerable(allTypesDataConverted);
253
var allInputTypesDataView = ML.
Data
.LoadFromEnumerable(allInputTypesData);
266
var expectedValuesDataView = ML.
Data
.LoadFromEnumerable(expectedValuesData);
284
var dataView = mlContext.
Data
.LoadFromEnumerable(data);
319
var dataView = ML.
Data
.LoadFromEnumerable(data);
345
var dataView = ML.
Data
.LoadFromEnumerable(data);
388
var dataView = ML.
Data
.LoadFromEnumerable(dataArray);
Transformers\CopyColumnEstimatorTests.cs (7)
49
var dataView = env.
Data
.LoadFromEnumerable(data);
61
var dataView = env.
Data
.LoadFromEnumerable(data);
79
var dataView = env.
Data
.LoadFromEnumerable(data);
80
var xyDataView = env.
Data
.LoadFromEnumerable(xydata);
98
var dataView = env.
Data
.LoadFromEnumerable(data);
116
var dataView = env.
Data
.LoadFromEnumerable(data);
135
var dataView = env.
Data
.LoadFromEnumerable(data);
Transformers\CountTargetEncodingTests.cs (5)
26
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
42
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] { new TextLoader.Column("Label", DataKind.Single, 0),
57
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
77
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
162
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
Transformers\CustomMappingTests.cs (9)
56
var loader = ML.
Data
.CreateTextLoader(new[] {
79
var inputs = ML.
Data
.CreateEnumerable<MyInput>(transformedData, true);
80
var outputs = ML.
Data
.CreateEnumerable<MyOutput>(transformedData, true);
92
var loader = ML.
Data
.CreateTextLoader(new[] {
170
var loader = ML.
Data
.CreateTextLoader(new[] {
195
var loader = ML.
Data
.CreateTextLoader(new[] {
201
var filteredData = ML.
Data
.FilterByCustomPredicate<MyInput>(data, input => input.Float1 % 2 == 0);
219
var data = ML.
Data
.LoadFromEnumerable(new[]
232
var filteredData = ML.
Data
.FilterByStatefulCustomPredicate<MyFilterInput, MyFilterState>(data,
Transformers\FeatureSelectionTests.cs (12)
31
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
36
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
50
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
65
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
87
var savedData = ML.
Data
.TakeRows(trans.Transform(data), 4);
107
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
129
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
148
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
170
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
189
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
208
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
230
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
Transformers\GroupUngroup.cs (4)
49
var dataView = ML.
Data
.LoadFromEnumerable(data);
52
var grouped = ML.
Data
.CreateEnumerable<UngroupExample>(groupTransform, false).ToList();
86
var dataView = ML.
Data
.LoadFromEnumerable(data);
89
var ungrouped = ML.
Data
.CreateEnumerable<GroupExample>(ungroupTransform, false).ToList();
Transformers\HashTests.cs (6)
50
var dataView = ML.
Data
.LoadFromEnumerable(data);
72
var dataView = ML.
Data
.LoadFromEnumerable(data);
112
var dataView = ML.
Data
.LoadFromEnumerable(data);
335
IDataView data = ML.
Data
.LoadFromEnumerable(samples);
357
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[]
381
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\KeyToBinaryVectorEstimatorTest.cs (4)
47
var dataView = ML.
Data
.LoadFromEnumerable(data);
63
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
91
var dataView = ML.
Data
.LoadFromEnumerable(data);
147
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\KeyToValueTests.cs (1)
68
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
Transformers\KeyToVectorEstimatorTests.cs (5)
54
var dataView = ML.
Data
.LoadFromEnumerable(data);
73
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
101
var dataView = ML.
Data
.LoadFromEnumerable(data);
206
var dataView = ML.
Data
.LoadFromEnumerable(data);
254
IDataView dataview = mlContext.
Data
.LoadFromEnumerable(GetData());
Transformers\NAIndicatorTests.cs (6)
46
var dataView = ML.
Data
.LoadFromEnumerable(data);
74
var dataView = ML.
Data
.LoadFromEnumerable(data);
95
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
103
var invalidData = ML.
Data
.LoadFromEnumerable(wrongCollection);
117
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
137
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\NAReplaceTests.cs (8)
66
var dataView = ML.
Data
.LoadFromEnumerable(data);
87
var expectedOutputDataview = ML.
Data
.LoadFromEnumerable(expectedOutput);
111
var dataView = ML.
Data
.LoadFromEnumerable(data);
125
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
133
var invalidData = ML.
Data
.LoadFromEnumerable(wrongCollection);
143
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
146
ML.
Data
.SaveAsText(view, fs, headerRow: true, keepHidden: true);
169
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\NormalizerTests.cs (20)
656
var data = ML.
Data
.LoadFromTextFile(dataSource, new[] {
661
var invalidData = ML.
Data
.LoadFromTextFile(dataSource, new[] {
675
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
690
var data = ML.
Data
.LoadFromTextFile(dataSource, new[] {
695
var invalidData = ML.
Data
.LoadFromTextFile(dataSource, new[] {
709
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
732
var dataView = ML.
Data
.LoadFromTextFile(dataSource, new[] {
754
var data = ML.
Data
.LoadFromTextFile(dataSource, new[] {
759
var invalidData = ML.
Data
.LoadFromTextFile(dataSource, new[] {
772
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
793
var dataView = ML.
Data
.LoadFromTextFile(dataSource, new[] {
814
var data = ML.
Data
.LoadFromTextFile(dataSource, new[] {
819
var invalidData = ML.
Data
.LoadFromTextFile(dataSource, new[] {
832
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
853
var dataView = ML.
Data
.LoadFromTextFile(dataSource, new[] {
905
var data = ML.
Data
.LoadFromEnumerable(samples);
930
var transformedDataArray = ML.
Data
.CreateEnumerable<DataPointOne>(noCdfData, false).ToImmutableArray();
946
var data = ML.
Data
.LoadFromEnumerable(samples);
974
var transformedDataArray = ML.
Data
.CreateEnumerable<DataPointVec>(noCdfData, false).ToImmutableArray();
1054
var data = ML.
Data
.LoadFromEnumerable(samples);
Transformers\PcaTests.cs (5)
29
var data = ML.
Data
.LoadFromTextFile(_dataSource, new[] {
35
var invalidData = ML.
Data
.LoadFromTextFile(_dataSource, new[] {
53
var data = ML.
Data
.LoadFromTextFile(_dataSource, new[] {
60
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
64
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
Transformers\RffTests.cs (7)
50
var invalidData = ML.
Data
.LoadFromEnumerable(new[] { new TestClassInvalidSchema { A = 1 }, new TestClassInvalidSchema { A = 1 } });
51
var validFitInvalidData = ML.
Data
.LoadFromEnumerable(new[] { new TestClassBiggerSize { A = new float[200] }, new TestClassBiggerSize { A = new float[200] } });
52
var dataView = ML.
Data
.LoadFromEnumerable(data);
67
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
77
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
79
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
98
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\SelectColumnsTests.cs (14)
48
var dataView = ML.
Data
.LoadFromEnumerable(data);
67
var dataView = ML.
Data
.LoadFromEnumerable(data);
88
var dataView = ML.
Data
.LoadFromEnumerable(data);
107
var dataView = ML.
Data
.LoadFromEnumerable(data);
108
var invalidDataView = ML.
Data
.LoadFromEnumerable(invalidData);
123
var dataView = ML.
Data
.LoadFromEnumerable(data);
132
var dataView = ML.
Data
.LoadFromEnumerable(data);
155
var dataView = ML.
Data
.LoadFromEnumerable(data);
178
var dataView = ML.
Data
.LoadFromEnumerable(data);
197
var dataView = ML.
Data
.LoadFromEnumerable(data);
219
var dataView = ML.
Data
.LoadFromEnumerable(data);
247
var dataView = ML.
Data
.LoadFromEnumerable(data);
275
var dataView = ML.
Data
.LoadFromEnumerable(data);
303
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\TextFeaturizerTests.cs (39)
49
var dataView = ML.
Data
.LoadFromEnumerable(data);
67
var dataView = ML.
Data
.LoadFromEnumerable(data);
96
var dataView = ML.
Data
.LoadFromEnumerable(data);
138
var dataView = ML.
Data
.LoadFromEnumerable(data);
180
var dataView = ML.
Data
.LoadFromEnumerable(data);
209
var dataView = ML.
Data
.LoadFromEnumerable(data);
240
var dataView = ML.
Data
.LoadFromEnumerable(data);
301
var dataView = ML.
Data
.LoadFromEnumerable(data);
340
var dataView = ML.
Data
.LoadFromEnumerable(data);
378
var dataView = ML.
Data
.LoadFromEnumerable(data);
415
var dataView = ML.
Data
.LoadFromEnumerable(data);
426
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
431
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
444
var savedData = ML.
Data
.TakeRows(feat.Fit(data).Transform(data), 4);
459
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
464
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
475
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
479
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
489
var data = ML.
Data
.LoadFromTextFile(dataPath, new[] {
495
var outdata = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
526
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
531
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
544
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
547
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
589
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
594
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
605
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
609
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
619
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
624
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
640
var savedData = ML.
Data
.TakeRows(est.Fit(data).Transform(data), 4);
644
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
656
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
673
var data = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
678
var invalidData = ML.
Data
.LoadFromTextFile(sentimentDataPath, new[] {
699
var savedData = ML.
Data
.TakeRows(transformedData, 4);
761
var testData = ML.
Data
.CreateEnumerable<SentimentData>(
762
ML.
Data
.LoadFromTextFile(GetDataPath(TestDatasets.Sentiment.testFilename),
777
var dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
Transformers\TextNormalizer.cs (6)
42
var dataView = ML.
Data
.LoadFromEnumerable(data);
47
var invalidDataView = ML.
Data
.LoadFromEnumerable(invalidData);
51
dataView = ML.
Data
.LoadFromTextFile(dataPath, new[] {
63
var savedData = ML.
Data
.TakeRows(pipeVariations.Fit(dataView).Transform(dataView), 5);
65
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
81
var dataView = ML.
Data
.LoadFromEnumerable(data);
Transformers\ValueMappingTests.cs (27)
53
var dataView = ML.
Data
.LoadFromEnumerable(data);
91
var dataView = ML.
Data
.LoadFromEnumerable(data);
137
var dataView = ML.
Data
.LoadFromEnumerable(data);
172
var dataView = ML.
Data
.LoadFromEnumerable(data);
227
var dataView = ML.
Data
.LoadFromEnumerable(data);
234
var mapView = ML.
Data
.LoadFromEnumerable(map);
261
var dataView = ML.
Data
.LoadFromEnumerable(data);
305
var dataView = ML.
Data
.LoadFromEnumerable(data);
343
var dataView = ML.
Data
.LoadFromEnumerable(data);
362
var dataView = ML.
Data
.LoadFromEnumerable(data);
394
var dataView = ML.
Data
.LoadFromEnumerable(data);
427
var dataView = ML.
Data
.LoadFromEnumerable(data);
469
var dataView = ML.
Data
.LoadFromEnumerable(data);
509
var dataView = ML.
Data
.LoadFromEnumerable(data);
550
var dataView = ML.
Data
.LoadFromEnumerable(data);
590
var dataView = ML.
Data
.LoadFromEnumerable(data);
592
var badDataView = ML.
Data
.LoadFromEnumerable(badData);
609
var dataView = ML.
Data
.LoadFromEnumerable(data);
611
var badDataView = ML.
Data
.LoadFromEnumerable(badData);
628
var dataView = ML.
Data
.LoadFromEnumerable(data);
631
var badDataView = ML.
Data
.LoadFromEnumerable(badData);
685
var dataView = ML.
Data
.LoadFromEnumerable(data);
715
var dataView = ML.
Data
.LoadFromEnumerable(data);
732
var dataView = ML.
Data
.LoadFromEnumerable(data);
763
var data = ML.
Data
.LoadFromEnumerable(rawData);
775
var lookupIdvMap = ML.
Data
.LoadFromEnumerable(lookupData);
784
var features = ML.
Data
.CreateEnumerable<TransformedData>(transformedData, reuseRowObject: false).ToList();
Transformers\WordBagTransformerTests.cs (4)
38
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
67
var dataview = mlContext.
Data
.LoadFromEnumerable(samples);
105
var dataviewDefault = mlContext.
Data
.LoadFromEnumerable(samplesDefault);
106
var dataviewNonDefault = mlContext.
Data
.LoadFromEnumerable(samplesNonDefault);
Transformers\WordEmbeddingsTests.cs (4)
51
var savedData = ML.
Data
.TakeRows(pipe.Fit(words).Transform(words), 4);
55
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
94
var savedData = ML.
Data
.TakeRows(pipe.Fit(words).Transform(words), 10);
98
ML.
Data
.SaveAsText(savedData, fs, headerRow: true, keepHidden: true);
Transformers\WordTokenizeTests.cs (4)
55
var dataView = ML.
Data
.LoadFromEnumerable(data);
57
var invalidDataView = ML.
Data
.LoadFromEnumerable(invalidData);
69
var nativeResult = ML.
Data
.CreateEnumerable<NativeResult>(result, false).First();
99
var dataView = ML.
Data
.LoadFromEnumerable(data);
Microsoft.ML.TimeSeries.Tests (56)
TimeSeriesDirectApi.cs (33)
113
var dataView = env.
Data
.LoadFromEnumerable(data);
132
var enumerator = env.
Data
.CreateEnumerable<Prediction>(output, true).GetEnumerator();
158
var dataView = env.
Data
.LoadFromEnumerable(data);
182
var enumerator = env.
Data
.CreateEnumerable<Prediction>(output, true).GetEnumerator();
216
var dataView = ml.
Data
.LoadFromEnumerable(data);
292
var dataView = ml.
Data
.LoadFromEnumerable(data);
360
var dataView = env.
Data
.LoadFromEnumerable(data);
388
var enumerator = env.
Data
.CreateEnumerable<ForecastPrediction>(output, true).GetEnumerator();
425
var dataView = ml.
Data
.LoadFromEnumerable(data);
539
dataView = ml.
Data
.LoadFromTextFile(dataPath, new[] {
558
dataView = ml.
Data
.LoadFromEnumerable(data);
569
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(transformedData, reuseRowObject: false);
597
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
598
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
615
dataView = ml.
Data
.LoadFromEnumerable(data);
627
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
685
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
686
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
706
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
732
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
733
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
753
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
787
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
788
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
808
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
846
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
847
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
867
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
904
dataView = ml.
Data
.LoadFromTextFile<TimeSeriesDataDouble>(dataPath, hasHeader: true);
905
data = ml.
Data
.CreateEnumerable<TimeSeriesDataDouble>(dataView, reuseRowObject: false).ToList();
915
dataView = ml.
Data
.LoadFromEnumerable<TimeSeriesDataDouble>(data);
935
var predictionColumn = ml.
Data
.CreateEnumerable<SrCnnAnomalyDetection>(
1076
var dataView = mlContext.
Data
.LoadFromEnumerable(input);
TimeSeriesEstimatorTests.cs (15)
54
var dataView = ML.
Data
.LoadFromEnumerable(data);
69
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
70
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
88
var dataView = ml.
Data
.LoadFromEnumerable(data);
105
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
106
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
124
var dataView = ML.
Data
.LoadFromEnumerable(data);
139
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
140
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
155
var dataView = ML.
Data
.LoadFromEnumerable(data);
166
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
167
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
182
var dataView = ML.
Data
.LoadFromEnumerable(data);
193
var invalidDataWrongNames = ML.
Data
.LoadFromEnumerable(xyData);
194
var invalidDataWrongTypes = ML.
Data
.LoadFromEnumerable(stringData);
TimeSeriesSimpleApiTests.cs (8)
44
var dataView = env.
Data
.LoadFromEnumerable(data);
60
var enumerator = env.
Data
.CreateEnumerable<ChangePointPrediction>(output, true).GetEnumerator();
86
var dataView = env.
Data
.LoadFromEnumerable(data);
103
var enumerator = env.
Data
.CreateEnumerable<ChangePointPrediction>(output, true).GetEnumerator();
129
var dataView = env.
Data
.LoadFromEnumerable(data);
144
var enumerator = env.
Data
.CreateEnumerable<SpikePrediction>(output, true).GetEnumerator();
181
var dataView = env.
Data
.LoadFromEnumerable(data);
196
var enumerator = env.
Data
.CreateEnumerable<SpikePrediction>(output, true).GetEnumerator();
Microsoft.ML.TorchSharp.Tests (15)
NerTests.cs (6)
36
var labels = ML.
Data
.LoadFromEnumerable(
46
var dataView = ML.
Data
.LoadFromEnumerable(
112
var labels = ML.
Data
.LoadFromEnumerable(
125
var dataView = ML.
Data
.LoadFromEnumerable(
195
var labels = ML.
Data
.LoadFromTextFile(labelFilePath, new TextLoader.Column[]
217
var trainTest = ML.
Data
.TrainTestSplit(dataView);
QATests.cs (1)
32
var dataView = ML.
Data
.LoadFromEnumerable(
TextClassificationTests.cs (8)
54
var dataView = ML.
Data
.LoadFromEnumerable(
117
var dataNoLabel = ML.
Data
.LoadFromEnumerable(
175
var trainTestSplit = mlContext.
Data
.TrainTestSplit(df, testFraction: 0.2);
191
var dataView = ML.
Data
.LoadFromEnumerable(
264
var dataView = ML.
Data
.LoadFromEnumerable(
347
var dataView = ML.
Data
.LoadFromEnumerable(
430
dataView = ML.
Data
.FilterRowsByMissingValues(dataView, "relevance");
432
var dataSplit = ML.
Data
.TrainTestSplit(dataView, testFraction: 0.2);