15 implementations of Transform
Microsoft.ML.Data (5)
DataLoadSave\TransformerChain.cs (1)
139public IDataView Transform(IDataView input)
DataLoadSave\TransformWrapper.cs (1)
45public IDataView Transform(IDataView input) => ApplyTransformUtils.ApplyTransformToData(_host, (IDataTransform)_xf, input);
Scorers\PredictionTransformer.cs (1)
146public IDataView Transform(IDataView input)
Transforms\ColumnSelecting.cs (1)
509public IDataView Transform(IDataView input)
Transforms\RowToRowTransformerBase.cs (1)
47public IDataView Transform(IDataView input) => MakeDataTransform(input);
Microsoft.ML.TimeSeries (5)
IidAnomalyDetectionBase.cs (1)
59public IDataView Transform(IDataView input) => InternalTransform.Transform(input);
SequentialTransformerBase.cs (1)
450public IDataView Transform(IDataView input) => MakeDataTransform(input);
SrCnnAnomalyDetectionBase.cs (1)
55public IDataView Transform(IDataView input) => InternalTransform.Transform(input);
SsaAnomalyDetectionBase.cs (1)
128public IDataView Transform(IDataView input) => InternalTransform.Transform(input);
SsaForecastingBase.cs (1)
61public IDataView Transform(IDataView input) => InternalTransform.Transform(input);
Microsoft.ML.Transforms (5)
CustomMappingTransformer.cs (1)
90public IDataView Transform(IDataView input)
OneHotEncoding.cs (1)
137public IDataView Transform(IDataView input) => _transformer.Transform(input);
OneHotHashEncoding.cs (1)
186public IDataView Transform(IDataView input) => _transformer.Transform(input);
StatefulCustomMappingTransformer.cs (1)
88public IDataView Transform(IDataView input)
Text\TextFeaturizingEstimator.cs (1)
694public IDataView Transform(IDataView input)
126 references to Transform
Microsoft.ML.AutoML (6)
API\ExperimentBase.cs (4)
286trainData = preprocessorTransform.Transform(trainData); 287validationData = preprocessorTransform.Transform(validationData); 371trainDatasets[i] = preprocessorTransforms[i].Transform(trainDatasets[i]); 372validDatasets[i] = preprocessorTransforms[i].Transform(validDatasets[i]);
Experiment\Runners\RunnerUtil.cs (1)
31var scoredData = model.Transform(validData);
Experiment\SuggestedPipeline.cs (1)
129validationSet = pipeline.Fit(validationSet).Transform(validationSet);
Microsoft.ML.AutoML.Samples (7)
AutoFit\BinaryClassificationExperiment.cs (1)
38IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView);
AutoFit\MulticlassClassificationExperiment.cs (1)
39IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView);
AutoFit\RankingExperiment.cs (1)
47IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView);
AutoFit\RecommendationExperiment.cs (1)
51IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView);
AutoFit\RegressionExperiment.cs (1)
39IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView);
AutoMLExperiment.cs (1)
60var eval = bestModel.Transform(trainTestSplit.TestSet);
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
87var eval = bestModel.Transform(trainTestSplit.TestSet);
Microsoft.ML.AutoML.Tests (12)
AutoFitTests.cs (10)
289var scoredData = result.BestRun.Results.First().Model.Transform(trainData); 321var scoredData = result.BestRun.Model.Transform(trainData); 352var scoredData = result.BestRun.Model.Transform(trainData); 375var scoredData = result.BestRun.Results.First().Model.Transform(trainData); 403var scoredData = result.BestRun.Model.Transform(trainData); 550IDataView testDataViewWithBestScore = bestRun.Model.Transform(testDataView); 625var resFull = model.Transform(dataFull); 626var resTrainTest = model.Transform(dataTrainTest.TrainSet); 627var resCV = model.Transform(dataCV.First().TrainSet); 687IDataView predictions = experiment.BestRun.Model.Transform(trainData);
GetNextPipelineTests.cs (1)
41var scoredData = estimator.Fit(uciAdult).Transform(uciAdult);
Utils\TaskAgnosticAutoFit.cs (1)
137result.ScoredTestData = model.Transform(testData);
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
1809}).Fit(data).Transform(data);
Microsoft.ML.Data (7)
DataLoadSave\EstimatorChain.cs (1)
72current = xfs[i].Transform(current);
DataLoadSave\TransformerChain.cs (1)
159dv = transformer.Transform(dv);
DebuggerExtensions.cs (2)
32=> new DataDebuggerPreview(transformer.Transform(data), maxRows); 51return new DataDebuggerPreview(estimator.Fit(trainData).Transform(data), maxRows);
Prediction\IPredictionTransformer.cs (2)
25/// to score the data of an input <see cref="IDataView"/> through the <see cref="ITransformer.Transform(IDataView)"/> 41/// through the <see cref="ITransformer.Transform(IDataView)"/>
TrainCatalog.cs (1)
111scoredTest = model.Transform(split.TestSet);
Microsoft.ML.IntegrationTests (6)
Debugging.cs (1)
65var transformedData = model.Transform(data);
Explainability.cs (1)
57transformedData = loadedModel.Transform(data);
ModelFiles.cs (2)
298data = loadedModelWithoutLoader.Transform(data); 345data = loadedModel.Transform(data);
Validation.cs (2)
117var preprocessedTrainData = preprocessor.Transform(trainData); 118var preprocessedValidData = preprocessor.Transform(validData);
Microsoft.ML.OnnxConverter (1)
OnnxExportExtensions.cs (1)
20var outputData = transform.Transform(inputData);
Microsoft.ML.OnnxTransformerTest (1)
OnnxTransformTests.cs (1)
1091var transformedDataView = loadedModel.Transform(dataView);
Microsoft.ML.PerformanceTests (1)
StochasticDualCoordinateAscentClassifierBench.cs (1)
110}, "SentimentText").Fit(loader).Transform(loader);
Microsoft.ML.Samples (16)
Dynamic\TextTransform.cs (2)
70.Transform(trainData); 73.Transform(trainData);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
39var transformedData = model.Transform(data);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
159IDataView predictions = trainedModel.Transform(testDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
185IDataView predictions = trainedModel.Transform(testDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
183IDataView predictions = trainedModel.Transform(testDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
168IDataView predictions = trainedModel.Transform(testDataset);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
47var transformedData = model.Transform(data);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
46var transformedData = model.Transform(data);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
45var transformedData = model.Transform(data);
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (1)
61var transformedData = loadedTransform.Transform(data);
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (1)
44var transformedData = pipeline.Fit(data).Transform(data);
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (1)
42var transformedData = pipeline.Fit(data).Transform(data);
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (1)
45var transformedData = pipeline.Fit(data).Transform(data);
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
56var transformedDataView = textTransformer.Transform(dataview);
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
62var transformedDataView = textTransformer.Transform(dataview);
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
159IDataView predictions = trainedModel.Transform(testDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
185IDataView predictions = trainedModel.Transform(testDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
183IDataView predictions = trainedModel.Transform(testDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
168IDataView predictions = trainedModel.Transform(testDataset);
Microsoft.ML.Samples.OneDal (6)
Program.cs (6)
83IDataView trainingPredictions = model.Transform(preprocessedTrainingData); 85IDataView testingPredictions = model.Transform(preprocessedTestingData); 115IDataView trainingPredictions = model.Transform(preprocessedTrainingData); 117IDataView testingPredictions = model.Transform(preprocessedTestingData); 143IDataView trainingPredictions = model.Transform(preprocessedTrainingData); 145IDataView testingPredictions = model.Transform(preprocessedTestingData);
Microsoft.ML.TestFramework (6)
DataPipe\TestDataPipeBase.cs (6)
113var scoredTrain = transformer.Transform(data); 114var scoredTrain2 = loadedTransformer.Transform(data); 135mustFail(() => transformer.Transform(invalidInput)); 137mustFail(() => loadedTransformer.Transform(invalidInput)); 142mustFail(() => transformer.Transform(validForFitNotValidForTransformInput)); 144mustFail(() => loadedTransformer.Transform(validForFitNotValidForTransformInput));
Microsoft.ML.Tests (39)
FeatureContributionTests.cs (1)
243var savedData = ML.Data.TakeRows(estimator.Fit(data).Transform(data), 4);
OnnxConversionTest.cs (1)
1504var transformedData = model.Transform(dataView);
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (1)
32var trainData = ml.Data.Cache(pipeline.Fit(data).Transform(data));
TrainerEstimators\CalibratorEstimators.cs (3)
105var scoredData = transformer.Transform(data); 131var calibratedData = transformer.Transform(scoredData).Preview(); 266var oldCalibratedData = oldPlattCalibratorTransformer.Transform(calibratorTestData.ScoredData).Preview();
TrainerEstimators\LbfgsTests.cs (2)
26var transformedDataView = pipe.Fit(dataView).Transform(dataView); 40var transformedDataView = pipe.Fit(dataView).Transform(dataView);
TrainerEstimators\MatrixFactorizationTests.cs (1)
561var testPrediction = model.Transform(testDataView);
TrainerEstimators\SymSgdClassificationTests.cs (2)
24var transformedDataView = pipe.Fit(dataView).Transform(dataView); 34var transformedData = pipe.Fit(dataView).Transform(dataView);
TrainerEstimators\TrainerEstimators.cs (3)
102var transformedDataView = pipe.Fit(dataView).Transform(dataView); 133var transformedDataView = pipe.Fit(dataView).Transform(dataView); 175var transformedDataView = pipe.Fit(dataView).Transform(dataView);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (2)
627var loadedPrediction = loadedModel.Transform(dataView); 686var loadedPrediction = loadedModel.Transform(dataView);
TrainerEstimators\TreeEstimators.cs (8)
52var transformedDataView = pipe.Fit(dataView).Transform(dataView); 74var transformedDataView = pipe.Fit(dataView).Transform(dataView); 96var transformedDataView = pipe.Fit(dataView).Transform(dataView); 119var transformedDataView = pipe.Fit(dataView).Transform(dataView); 141var transformedDataView = pipe.Fit(dataView).Transform(dataView); 162var transformedDataView = pipe.Fit(dataView).Transform(dataView); 186var transformedDataView = pipe.Fit(dataView).Transform(dataView); 204var transformedDataView = pipe.Fit(dataView).Transform(dataView);
Transformers\ConvertTests.cs (1)
398var outDataOld = modelOld.Transform(dataView);
Transformers\CopyColumnEstimatorTests.cs (1)
106var result = loadedTransformer.Transform(dataView);
Transformers\FeatureSelectionTests.cs (2)
155var result = pipe.Fit(dataView).Transform(dataView); 215var result = pipe.Fit(dataView).Transform(dataView);
Transformers\HashTests.cs (2)
346var transformedData = model.Transform(data); 365var hashed = model.Transform(dataView);
Transformers\NormalizerTests.cs (2)
1014var transformedData = normalizer.Transform(data); 1061var transformedData2 = loadedModel.Transform(data);
Transformers\SelectColumnsTests.cs (2)
186var result = loadedTransformer.Transform(dataView); 206var result = loadedTransformer.Transform(dataView);
Transformers\TextFeaturizerTests.cs (4)
107dataView = pipeline.Fit(dataView).Transform(dataView); 149dataView = pipeline.Fit(dataView).Transform(dataView); 444var savedData = ML.Data.TakeRows(feat.Fit(data).Transform(data), 4); 574}).Transform(tokenized);
Transformers\ValueMappingTests.cs (1)
701var result = loadedTransformer.Transform(dataView);
Microsoft.ML.Transforms (13)
CountFeatureSelection.cs (1)
238return new CountFeatureSelectingEstimator(env, columnOptions).Fit(input).Transform(input) as IDataTransform;
MutualInformationFeatureSelection.cs (1)
270return new MutualInformationFeatureSelectingEstimator(env, options.LabelColumnName, options.SlotsInOutput, options.NumBins, cols).Fit(input).Transform(input) as IDataTransform;
PermutationFeatureImportance.cs (2)
48var baselineMetrics = evaluationFunc(model.Transform(data)); 226var metrics = evaluationFunc(model.Transform(viewPermuted));
SvmLight\SvmLightLoader.cs (2)
758data = keyVectorsToIndexVectors.Transform(data); 759return CreateOutputTransformer(_host, (int)_featureCount, _indicesKind == FeatureIndices.Names, data.Schema).Transform(data);
Text\TextFeaturizingEstimator.cs (3)
615view = transformer.Transform(view); 669return estimator.Fit(data).Transform(data) as IDataTransform; 751data = transformer.Transform(data);
Text\WordBagTransform.cs (2)
174(IDataTransform)CreateEstimator(env, options, SchemaShape.Create(input.Schema)).Fit(input).Transform(input); 546return CreateEstimator(env, options, SchemaShape.Create(input.Schema), termLoaderArgs).Fit(input).Transform(input)/* Create(env, options, input, termLoaderArgs).Transform(input) */as IDataTransform;
Text\WordHashBagProducingTransform.cs (2)
150view = t1.Transform(view); 160(IDataTransform)CreateTransformer(env, options, input).Transform(input);