Implemented interface member:
method
Transform
Microsoft.ML.ITransformer.Transform(Microsoft.ML.IDataView)
208 references to Transform
Microsoft.ML.AutoML (5)
API\BinaryClassificationExperiment.cs (1)
424
var eval = model.
Transform
(trainTestDatasetManager.LoadValidateDataset(_context, settings));
API\MulticlassClassificationExperiment.cs (1)
402
var eval = model.
Transform
(trainTestDatasetManager.LoadValidateDataset(_context, settings));
API\RegressionExperiment.cs (1)
429
var eval = model.
Transform
(trainTestDatasetManager.LoadValidateDataset(_context, settings));
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
53
var eval = model.
Transform
(split.TestSet);
76
var eval = model.
Transform
(trainTestDatasetManager.LoadValidateDataset(_mLContext!, settings));
Microsoft.ML.Data (1)
DataLoadSave\CompositeDataLoader.cs (1)
69
idv = Transformer.
Transform
(idv);
Microsoft.ML.Fairlearn (1)
Reductions\GridSearchTrialRunner.cs (1)
81
var eval = model.
Transform
(validateDataset);
Microsoft.ML.IntegrationTests (36)
Datasets\Iris.cs (1)
59
var transformedData = pipeline.Fit(data).
Transform
(data);
Datasets\TrivialMatrixFactorization.cs (1)
34
var transformedData = pipeline.Fit(data).
Transform
(data);
DataTransformation.cs (3)
152
var scoredData = model.
Transform
(data);
179
var transformedData = pipeline.Fit(data).
Transform
(data);
207
var transformedData = pipeline.Fit(data).
Transform
(data);
Evaluation.cs (7)
74
var scoredData = model.
Transform
(data);
103
var scoredData = model.
Transform
(data);
131
var scoredData = model.
Transform
(data);
161
var scoredData = model.
Transform
(data);
183
var scoredData = model.
Transform
(data);
277
var scoredData = model.
Transform
(data);
309
var scoredData = model.
Transform
(data);
Explainability.cs (5)
65
transformedData = model.
Transform
(data);
179
var scoredData = model.
Transform
(data);
216
var scoredData = model.
Transform
(data);
253
var scoredData = model.
Transform
(data);
291
var scoredData = model.
Transform
(data);
IntrospectiveTraining.cs (3)
204
var transformedData = model.
Transform
(data);
234
var transformedData = model.
Transform
(data);
346
var transformedData = model.
Transform
(data);
SchemaDefinitionTests.cs (1)
89
model = model.Append(custom.Fit(model.
Transform
(loader.Load(data))) as ITransformer);
Training.cs (12)
55
var featurizedTrain = featurization.
Transform
(trainData);
56
var featurizedTest = featurization.
Transform
(testData);
100
var featurizedData = featurization.
Transform
(data);
144
var featurizedData = featurization.
Transform
(data);
188
var featurizedData = featurization.
Transform
(data);
232
var featurizedData = featurization.
Transform
(data);
275
var featurizedData = featurization.
Transform
(data);
326
var featurizedData = featurization.
Transform
(data);
370
var featurizedData = featurization.
Transform
(data);
418
var featurizedData = featurization.
Transform
(data);
464
var binaryClassificationPredictions = binaryClassificationModel.
Transform
(data);
496
var binaryClassificationPredictions = binaryClassificationModel.
Transform
(data);
Validation.cs (3)
133
var scoredTrainData = model.
Transform
(trainData);
134
var scoredValidData = model.
Transform
(validData);
160
var scoredDataOneRow = model.
Transform
(mlContext.Data.TakeRows(data, 1));
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (2)
116
var result = pipe.Fit(data).
Transform
(data);
155
var result = transformer.
Transform
(dataView);
OnnxTransformTests.cs (3)
262
var result = model.
Transform
(data);
313
var result = model.
Transform
(data);
646
var onnx = model.
Transform
(dataView);
Microsoft.ML.PerformanceTests (6)
ImageClassificationBench.cs (1)
65
.
Transform
(shuffledFullImagesDataset);
StochasticDualCoordinateAscentClassifierBench.cs (5)
115
.Fit(text).
Transform
(text);
146
_scoredIrisTestData = _trainedModel.
Transform
(testData);
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]));
Microsoft.ML.Predictor.Tests (2)
TestIniModels.cs (2)
533
var data = model.
Transform
(idv);
572
var data = model.
Transform
(idv);
Microsoft.ML.Samples (46)
Dynamic\ModelOperations\OnnxConversion.cs (1)
89
var output = transformer.
Transform
(trainTestOriginalData.TestSet);
Dynamic\NgramExtraction.cs (2)
60
.
Transform
(trainData);
63
.
Transform
(trainData);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
37
var transformedData = model.
Transform
(data);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
55
.
Transform
(shuffledFullImagesDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
59
.
Transform
(trainDataset);
75
.
Transform
(testDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
54
.
Transform
(shuffledFullImagesDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
54
.
Transform
(shuffledFullImagesDataset);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
44
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
52
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
47
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
57
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
44
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
50
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
45
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
45
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
39
var transformedData = model.
Transform
(data);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
52
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
61
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
52
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
61
var transformedTestData = model.
Transform
(testData);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
39
var transformedData = model.
Transform
(data);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
61
var dataWithPredictions = model.
Transform
(split.TestSet);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
70
var dataWithPredictions = model.
Transform
(split.TestSet);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
38
var transformedData = model.
Transform
(data);
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
50
var onnx = model.
Transform
(dataView);
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
33
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
33
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\Concatenate.cs (1)
55
var transformedData = pipeline.Fit(dataview).
Transform
(dataview);
Dynamic\Transforms\Conversion\Hash.cs (1)
50
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (3)
48
var transformedDataDefault = defaultPipeline.Fit(trainData).
Transform
(
52
.
Transform
(trainData);
88
transformedDataDefault = pipeline.Fit(trainData).
Transform
(trainData);
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
39
var dataWithPredictions = pipeline.Fit(dataView).
Transform
(dataView);
Dynamic\Transforms\Conversion\MapKeyToVector.cs (1)
52
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Conversion\MapValue.cs (1)
67
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Expression.cs (1)
42
var transformedData = pipeline.Fit(dataview).
Transform
(dataview);
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (1)
44
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (1)
50
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
36
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ImageAnalytics\DnnFeaturizeImage.cs (1)
56
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (1)
55
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (1)
49
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
57
var transformedDataView = textTransformer.
Transform
(dataview);
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
65
var transformedDataView = textTransformer.
Transform
(dataview);
Microsoft.ML.Samples.GPU (5)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
55
.
Transform
(shuffledFullImagesDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
59
.
Transform
(trainDataset);
75
.
Transform
(testDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
54
.
Transform
(shuffledFullImagesDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
54
.
Transform
(shuffledFullImagesDataset);
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
108
var featurizedData = pipeline.Fit(data).
Transform
(data);
Microsoft.ML.TensorFlow.Tests (13)
TensorFlowEstimatorTests.cs (4)
170
var result = model.
Transform
(data);
211
var schema = pipe.Fit(data).
Transform
(data).Schema;
225
schema = pipe.Fit(data).
Transform
(data).Schema;
263
var result = model.
Transform
(data);
TensorflowTests.cs (9)
674
var predicted = trainedModel.
Transform
(testData);
850
var predicted = trainedModel.
Transform
(preprocessedTestData);
898
var predicted = trainedModel.
Transform
(testData);
1026
var pixels = pipeEstimator.Fit(data).
Transform
(data);
1433
IDataView predictions = trainedModel.
Transform
(testDataset);
1536
IDataView predictions = trainedModel.
Transform
(testDataset);
1695
IDataView predictions = trainedModel.
Transform
(testDataset);
1825
IDataView predictions = trainedModel.
Transform
(testDataset);
1861
.
Transform
(shuffledFullImagesDataset);
Microsoft.ML.Tests (76)
CalibratedModelParametersTests.cs (1)
137
.Fit(srcDV).
Transform
(srcDV);
FeatureContributionTests.cs (5)
319
.Fit(srcDV).
Transform
(srcDV);
322
.Fit(srcDV).
Transform
(srcDV);
325
.Fit(srcDV).
Transform
(srcDV);
327
return pipeline.Fit(srcDV).
Transform
(srcDV);
435
return dataProcessPipeline.Fit(someRows).
Transform
(someRows);
OnnxConversionTest.cs (2)
799
var transformedData = model.
Transform
(data);
2242
var transformedData = model.
Transform
(dataView);
PermutationFeatureImportanceTests.cs (8)
862
.Fit(srcDV).
Transform
(srcDV);
865
.Fit(srcDV).
Transform
(srcDV);
868
.Fit(srcDV).
Transform
(srcDV);
870
return pipeline.Fit(srcDV).
Transform
(srcDV);
943
.Fit(srcDV).
Transform
(srcDV);
948
.Fit(srcDV).
Transform
(srcDV);
952
.Fit(srcDV).
Transform
(srcDV);
954
return pipeline.Fit(srcDV).
Transform
(srcDV);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (5)
195
var metrics = mlContext.Regression.Evaluate(model.
Transform
(testData), labelColumnName: "Target");
357
var transformedData = model.
Transform
(data);
468
var transfomedData = model.
Transform
(data);
547
var transformedData = pipeline.Fit(data).
Transform
(data);
603
var transformedData = pipeline.Fit(data).
Transform
(data);
Scenarios\Api\Estimators\PredictAndMetadata.cs (2)
88
var scoredData = model.
Transform
(data);
122
var scoredData2 = model2.
Transform
(data2);
Scenarios\IrisPlantClassificationTests.cs (1)
87
var predicted = trainedModel.
Transform
(testData);
Scenarios\RegressionTest.cs (1)
42
var predictions = model.
Transform
(splitData.TestSet);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
47
var predicted = trainedModel.
Transform
(testData);
TrainerEstimators\FAFMEstimator.cs (1)
29
var prediction = model.
Transform
(dataView);
TrainerEstimators\LbfgsTests.cs (1)
107
var scoredData = transformer.
Transform
(dataView);
TrainerEstimators\SdcaTests.cs (4)
185
var prediction1 = modelWithoutWeights.
Transform
(data);
186
var prediction2 = modelWithWeights.
Transform
(data);
284
var prediction = model.
Transform
(data);
318
var prediction = model.
Transform
(data);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (12)
334
var prediction = model.
Transform
(dataView);
380
var prediction = model.
Transform
(dataView);
419
var prediction = model.
Transform
(dataView);
458
var prediction = model.
Transform
(dataView);
496
var prediction = model.
Transform
(dataView);
534
var prediction = model.
Transform
(dataView);
572
var prediction = model.
Transform
(dataView);
610
var prediction = model.
Transform
(dataView);
667
var prediction = model.
Transform
(dataView);
699
var secondPrediction = secondModel.
Transform
(dataView);
754
var prediction = model.
Transform
(dataView);
810
var prediction = model.
Transform
(testData);
TrainerEstimators\TreeEstimators.cs (3)
328
var data = pipe.Fit(dataView).
Transform
(dataView).Preview();
373
var transformedDataView = pipe.Fit(dataView).
Transform
(dataView);
784
var metrics = ML.MulticlassClassification.Evaluate(model.
Transform
(dataView));
Transformers\CategoricalHashTests.cs (1)
102
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\CategoricalTests.cs (1)
174
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\ConcatTests.cs (1)
71
data = pipe.Fit(data).
Transform
(data);
Transformers\ConvertTests.cs (1)
346
dataView = pipe.Fit(dataView).
Transform
(dataView);
Transformers\ExpressionTransformerTests.cs (1)
49
var transformed = expr.Fit(loader.Load(dataPath)).
Transform
(loader.Load(dataPath));
Transformers\FeatureSelectionTests.cs (3)
50
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
129
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
189
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\HashTests.cs (1)
389
var transformed = pipeline.Fit(dataView).
Transform
(dataView);
Transformers\KeyToValueTests.cs (1)
83
var data2Transformed = est.Fit(transformedData).
Transform
(transformedData);
Transformers\KeyToVectorEstimatorTests.cs (1)
259
var featurizedData = pipeline.Fit(dataview).
Transform
(dataview);
Transformers\NAIndicatorTests.cs (1)
140
var result = newpipe.Fit(dataView).
Transform
(dataView);
Transformers\NAReplaceTests.cs (1)
143
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\NormalizerTests.cs (4)
675
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
709
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
772
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
832
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\SelectColumnsTests.cs (2)
136
var result = transformer.
Transform
(dataView);
159
var result = transformer.
Transform
(dataView);
Transformers\TextFeaturizerTests.cs (5)
475
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
544
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
605
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
640
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
698
var transformedData = transformer.
Transform
(data);
Transformers\TextNormalizer.cs (1)
63
var savedData = ML.Data.TakeRows(pipeVariations.Fit(dataView).
Transform
(dataView), 5);
Transformers\ValueMappingTests.cs (2)
114
var result = t.
Transform
(dataView);
563
var result = t.
Transform
(dataView);
Transformers\WordEmbeddingsTests.cs (2)
44
var words = est.Fit(data).
Transform
(data);
79
var words = est.Fit(data).
Transform
(data);
Microsoft.ML.TorchSharp.Tests (7)
NerTests.cs (3)
85
var output = transformer.
Transform
(dataView);
164
var output = transformer.
Transform
(dataView);
235
var output = transformer.
Transform
(trainTest.TestSet);
TextClassificationTests.cs (4)
153
var predictedLabel = filteredModel.
Transform
(dataNoLabel).GetColumn<ReadOnlyMemory<char>>(transformerSchema[3].Name);
181
var predictionIdv = model.
Transform
(trainTestSplit.TestSet);
253
var transformedData = transformer.
Transform
(dataView).Preview();
337
var predictedLabel = transformer.
Transform
(preppedData).GetColumn<ReadOnlyMemory<char>>(transformerSchema[5].Name);
Microsoft.ML.Transforms (4)
Dracula\CountTargetEncodingTransformer.cs (1)
395
return chain.
Transform
(input);
OneHotEncoding.cs (1)
137
public IDataView Transform(IDataView input) => _transformer.
Transform
(input);
OneHotHashEncoding.cs (1)
186
public IDataView Transform(IDataView input) => _transformer.
Transform
(input);
Text\TextFeaturizingEstimator.cs (1)
697
return _chain.
Transform
(input);