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