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