Implemented interface member:
method
Transform
Microsoft.ML.ITransformer.Transform(Microsoft.ML.IDataView)
312 references to Transform
Microsoft.ML.AutoML.Tests (2)
PurposeInferenceTests.cs (1)
34
data = normalizer.Fit(data).
Transform
(data);
UserInputValidationTests.cs (1)
360
trainingData = convertLabelToBoolEstimator.Fit(trainingData).
Transform
(trainingData);
Microsoft.ML.Core.Tests (7)
UnitTests\TestEntryPoints.cs (7)
440
).
Transform
(individualScores[i]);
1554
}).Fit(data).
Transform
(data);
1556
data = new ColumnConcatenatingTransformer(Env, "Features", new[] { "Features1", "Features2" }).
Transform
(data);
1557
data = new ValueToKeyMappingEstimator(Env, "Label", "Label", keyOrdinality: ValueToKeyMappingEstimator.KeyOrdinality.ByValue).Fit(data).
Transform
(data);
2011
}).Fit(data).
Transform
(data);
2012
data = new ColumnConcatenatingTransformer(Env, "Features", new[] { "Features1", "Features2" }).
Transform
(data);
2155
data = new ColumnConcatenatingTransformer(Env, new ColumnConcatenatingTransformer.ColumnOptions("Features", i % 2 == 0 ? new[] { "Features", "Cat" } : new[] { "Cat", "Features" })).
Transform
(data);
Microsoft.ML.Data (17)
DataLoadSave\DataOperationsCatalog.cs (4)
566
data = new TypeConvertingTransformer(env, splitColumnName, DataKind.Int64, samplingKeyColumn).
Transform
(data);
574
data = new HashingEstimator(env, columnOptions).Fit(data).
Transform
(data);
580
data = new ColumnCopyingEstimator(env, (splitColumnName, samplingKeyColumn)).Fit(data).
Transform
(data);
584
data = new NormalizingEstimator(env, new NormalizingEstimator.MinMaxColumnOptions(splitColumnName, samplingKeyColumn, ensureZeroUntouched: false)).Fit(data).
Transform
(data);
Evaluators\AnomalyDetectionEvaluator.cs (1)
772
overall = new ColumnCopyingTransformer(Host, cols).
Transform
(overall);
Evaluators\BinaryClassifierEvaluator.cs (1)
1389
fold = new ColumnCopyingTransformer(Host, cols).
Transform
(fold);
Evaluators\ClusteringEvaluator.cs (2)
842
perInst = new SlotsDroppingTransformer(Host, ClusteringPerInstanceEvaluator.SortedClusters, min: _numTopClusters).
Transform
(perInst);
849
perInst = new SlotsDroppingTransformer(Host, ClusteringPerInstanceEvaluator.SortedClusterScores, min: _numTopClusters).
Transform
(perInst);
Evaluators\EvaluatorUtils.cs (2)
911
idv = new KeyToValueMappingTransformer(env, keyCol).
Transform
(idv);
1077
overall = new KeyToValueMappingTransformer(env, MetricKinds.ColumnNames.StratCol).
Transform
(overall);
Evaluators\MamlEvaluator.cs (1)
264
idv = new ColumnCopyingTransformer(Host, cols.ToArray()).
Transform
(idv);
Evaluators\MulticlassClassificationEvaluator.cs (4)
1001
input = new ColumnCopyingTransformer(Host, (string.Format(TopKAccuracyFormat, _outputTopKAcc), MulticlassClassificationEvaluator.TopKAccuracy)).
Transform
(input);
1007
input = new ColumnCopyingTransformer(Host, (TopKAccuracyFormat, MulticlassClassificationEvaluator.AllTopKAccuracy)).
Transform
(input);
1074
perInst = new SlotsDroppingTransformer(Host, MulticlassPerInstanceEvaluator.SortedClasses, min: _numTopClasses).
Transform
(perInst);
1082
perInst = new SlotsDroppingTransformer(Host, MulticlassPerInstanceEvaluator.SortedScores, min: _numTopClasses).
Transform
(perInst);
Transforms\FeatureContributionCalculationTransformer.cs (1)
378
var outData = new FeatureContributionCalculatingTransformer(host, predictor, options.FeatureColumn, options.Top, options.Bottom, options.Normalize).
Transform
(options.Data);
Transforms\ValueMapping.cs (1)
1003
var view = new ColumnCopyingTransformer(host, cols.ToArray()).
Transform
(lookup);
Microsoft.ML.EntryPoints (6)
FeatureCombiner.cs (5)
99
.
Transform
(viewTrain);
110
viewTrain = new KeyToVectorMappingTransformer(host, ktv.Select(c => new KeyToVectorMappingEstimator.ColumnOptions(c.Name, c.Name)).ToArray()).
Transform
(viewTrain);
148
viewTrain = new TypeConvertingTransformer(env, cvt.ToArray()).
Transform
(viewTrain);
281
var xf = new KeyToValueMappingTransformer(host, input.PredictedLabelColumn).
Transform
(input.Data);
303
var xf = new TypeConvertingTransformer(host, new TypeConvertingEstimator.ColumnOptions(input.LabelColumn, DataKind.Single, input.LabelColumn)).
Transform
(input.Data);
ScoreColumnSelector.cs (1)
104
var copyColumn = new ColumnCopyingTransformer(env, copyCols.ToArray()).
Transform
(input.Data);
Microsoft.ML.Fairlearn (1)
Metrics\FairlearnMetricCatalog.cs (1)
69
var data = convertToString.Fit(_eval).
Transform
(_eval);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1355
data = new TypeConvertingTransformer(Host, new TypeConvertingEstimator.ColumnOptions(groupName, DataKind.UInt64, groupName)).
Transform
(data);
Microsoft.ML.IntegrationTests (5)
Explainability.cs (4)
186
var outputData = featureContributions.Fit(scoredData).
Transform
(scoredData);
223
var outputData = featureContributions.Fit(scoredData).
Transform
(scoredData);
260
var outputData = featureContributions.Fit(scoredData).
Transform
(scoredData);
298
var outputData = featureContributions.Fit(scoredData).
Transform
(scoredData);
ONNX.cs (1)
112
mlContext.Transforms.CopyColumns("Score", "Score").Fit(onnxModel.
Transform
(data)));
Microsoft.ML.OnnxConverter (2)
SaveOnnxCommand.cs (2)
367
var outputData = new KeyToValueMappingTransformer(Host, DefaultColumnNames.PredictedLabel).
Transform
(scorePipe);
393
var outputData = new KeyToValueMappingTransformer(Host, name).
Transform
(end);
Microsoft.ML.OnnxTransformerTest (12)
OnnxTransformTests.cs (12)
198
var result = transformer.
Transform
(dataView);
371
var onnx = onnxTransformer.
Transform
(dataView);
438
var onnx = onnxTransformer.
Transform
(dataView);
478
var onnx = onnxTransformer.
Transform
(dataView);
504
onnx = onnxTransformer.
Transform
(dataView);
538
var transformedValues = onnxTransformer.
Transform
(idv);
564
var transformedValues = onnxTransformer.
Transform
(idv);
696
var transformedDataView = onnxTransformer.
Transform
(dataView);
749
var transformedDataView = onnxTransformer.
Transform
(dataView);
913
transformedDataViews[0] = onnxTransformer[0].
Transform
(dataView);
920
transformedDataViews[1] = onnxTransformer[1].
Transform
(dataView);
925
transformedDataViews[2] = onnxTransformer[2].
Transform
(dataView);
Microsoft.ML.Samples (49)
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (1)
37
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\ModelOperations\OnnxConversion.cs (1)
90
var onnxOutput = onnxTransformer.
Transform
(trainTestOriginalData.TestSet);
Dynamic\SimpleDataViewImplementation.cs (1)
37
"TokenizedText", "Text").Fit(dataView).
Transform
(dataView);
Dynamic\TensorFlow\ImageClassification.cs (1)
49
var transformedValues = estimator.
Transform
(idv);
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
63
var finalData = calibratorTransformer.
Transform
(scoredData);
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
63
var finalData = calibratorTransformer.
Transform
(scoredData);
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
63
var finalData = calibratorTransformer.
Transform
(scoredData);
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
63
var finalData = calibratorTransformer.
Transform
(scoredData);
Dynamic\Transforms\ApplyOnnxModel.cs (1)
30
var transformedValues = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
39
var transformedData = tansformer.
Transform
(data);
Dynamic\Transforms\Conversion\ConvertType.cs (1)
28
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (1)
54
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\Conversion\HashWithOptions.cs (1)
64
var transformedData = transformer.
Transform
(data);
Dynamic\Transforms\Conversion\MapKeyToBinaryVector.cs (1)
39
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
54
var transformedData = newPipeline.Fit(dataWithPredictions).
Transform
(
Dynamic\Transforms\Conversion\MapKeyToVectorMultiColumn.cs (1)
40
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (1)
51
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
48
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (2)
38
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
89
transformedData = pipelineWithLookupMap.Fit(data).
Transform
(data);
Dynamic\Transforms\CopyColumns.cs (1)
52
var transformedData = pipeline.Fit(dataview).
Transform
(dataview);
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (1)
30
var transformedData = model.
Transform
(data);
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (1)
47
var transformedData = pipeline.Fit(data).
Transform
(data);
Dynamic\Transforms\IndicateMissingValues.cs (1)
36
var transformedData = tansformer.
Transform
(data);
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
44
var transformedData = tansformer.
Transform
(data);
Dynamic\Transforms\NormalizeBinning.cs (2)
46
var transformedData = normalizeTransform.
Transform
(data);
48
var fixZeroData = normalizeFixZeroTransform.
Transform
(data);
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
47
var transformedData = normalizeTransform.
Transform
(data);
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
34
var transformedData = tansformer.
Transform
(data);
Dynamic\Transforms\NormalizeLogMeanVariance.cs (2)
44
var transformedData = normalizeTransform.
Transform
(data);
46
var noCdfData = normalizeNoCdfTransform.
Transform
(data);
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (2)
37
var transformedData = normalizeTransform.
Transform
(data);
39
var noCdfData = normalizeNoCdfTransform.
Transform
(data);
Dynamic\Transforms\NormalizeLpNorm.cs (1)
35
var transformedData = tansformer.
Transform
(data);
Dynamic\Transforms\NormalizeMeanVariance.cs (2)
43
var transformedData = normalizeTransform.
Transform
(data);
45
var noCdfData = normalizeNoCdfTransform.
Transform
(data);
Dynamic\Transforms\NormalizeMinMax.cs (2)
42
var transformedData = normalizeTransform.
Transform
(data);
44
var fixZeroData = normalizeFixZeroTransform.
Transform
(data);
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (2)
66
var transformedData = normalizeTransform.
Transform
(data);
68
var fixZeroData = normalizeFixZeroTransform.
Transform
(data);
Dynamic\Transforms\NormalizeSupervisedBinning.cs (3)
40
.
Transform
(data);
60
var transformedData = normalizeTransform.
Transform
(data);
62
var fixZeroData = normalizeFixZeroTransform.
Transform
(data);
Dynamic\Transforms\Projection\VectorWhiten.cs (1)
53
var transformedData = whiteningPipeline.Fit(trainData).
Transform
(
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (1)
53
var transformedData = whiteningPipeline.Fit(trainData).
Transform
(
Dynamic\Transforms\ReplaceMissingValues.cs (2)
40
var defaultTransformedData = defaultTransformer.
Transform
(data);
71
var meanTransformedData = meanTransformer.
Transform
(data);
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (2)
46
var defaultTransformedData = defaultTransformer.
Transform
(data);
82
var meanTransformedData = meanTransformer.
Transform
(data);
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (1)
49
var transformedValues = estimator.
Transform
(idv);
Microsoft.ML.Samples.OneDal (6)
Program.cs (6)
68
var preprocessedTrainingData = preprocessingPipeline.Fit(trainingData).
Transform
(trainingData);
69
var preprocessedTestingData = preprocessingPipeline.Fit(trainingData).
Transform
(testingData);
100
var preprocessedTrainingData = preprocessingPipeline.Fit(trainingData).
Transform
(trainingData);
101
var preprocessedTestingData = preprocessingPipeline.Fit(trainingData).
Transform
(testingData);
132
var preprocessedTrainingData = preprocessingPipeline.Fit(trainingData).
Transform
(trainingData);
133
var preprocessedTestingData = preprocessingPipeline.Fit(trainingData).
Transform
(testingData);
Microsoft.ML.TensorFlow.Tests (27)
TensorFlowEstimatorTests.cs (1)
126
var result = transformer.
Transform
(dataView);
TensorflowTests.cs (26)
201
var idv = trans.
Transform
(loader);
293
var idv = trans.
Transform
(loader);
415
var idv = trans.
Transform
(loader);
507
var cropped = new ImageResizingTransformer(_mlContext, "ImageCropped", 32, 32, "ImageReal").
Transform
(images);
509
var pixels = _mlContext.Transforms.ExtractPixels("image_tensor", "ImageCropped", outputAsFloatArray: false).Fit(cropped).
Transform
(cropped);
511
var tf = tfModel.ScoreTensorFlowModel(new[] { "detection_boxes", "detection_scores", "num_detections", "detection_classes" }, new[] { "image_tensor" }).Fit(pixels).
Transform
(pixels);
553
var images = _mlContext.Transforms.LoadImages("ImageReal", "ImagePath", imageFolder).Fit(data).
Transform
(data);
554
var cropped = _mlContext.Transforms.ResizeImages("ImageCropped", 224, 224, "ImageReal").Fit(images).
Transform
(images);
555
var pixels = _mlContext.Transforms.ExtractPixels(inputName, "ImageCropped", interleavePixelColors: true).Fit(cropped).
Transform
(cropped);
557
var tf = tfModel.ScoreTensorFlowModel(outputName, inputName, true).Fit(pixels).
Transform
(pixels);
1028
IDataView idv = trans.
Transform
(pixels);
1076
var images = _mlContext.Transforms.LoadImages("ImageReal", imageFolder, "ImagePath").Fit(data).
Transform
(data);
1077
var cropped = _mlContext.Transforms.ResizeImages("ImageCropped", imageWidth, imageHeight, "ImageReal").Fit(images).
Transform
(images);
1078
var pixels = _mlContext.Transforms.ExtractPixels("Input", "ImageCropped", interleavePixelColors: true).Fit(cropped).
Transform
(cropped);
1080
IDataView idv = trans.
Transform
(pixels);
1230
var images = new ImageLoadingTransformer(_mlContext, imageFolder, ("ImageReal", "ImagePath")).
Transform
(data);
1231
var cropped = new ImageResizingTransformer(_mlContext, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
1232
var pixels = new ImagePixelExtractingTransformer(_mlContext, "Input", "ImageCropped").
Transform
(cropped);
1238
IDataView trans = model.ScoreTensorFlowModel("Output", "Input").Fit(pixels).
Transform
(pixels);
1409
.
Transform
(shuffledFullImagesDataset);
1484
.
Transform
(shuffledFullImagesDataset);
1494
.
Transform
(testDataset);
1616
.
Transform
(shuffledFullImagesDataset);
1626
.
Transform
(testDataset);
1771
.
Transform
(shuffledFullImagesDataset);
1783
.
Transform
(testDataset);
Microsoft.ML.TestFramework (4)
DataPipe\TestDataPipe.cs (4)
1116
var hashTransform = new HashingTransformer(Env, new HashingEstimator.ColumnOptions("F1", "F1", 5, 42)).
Transform
(srcView);
1147
var hashTransform = new HashingTransformer(Env, new HashingEstimator.ColumnOptions("F1V", "F1V", 5, 42)).
Transform
(srcView);
1553
var transformedData = ldaTransformer.
Transform
(srcView);
1606
var lda = ML.Transforms.Text.LatentDirichletAllocation("Zeros").Fit(srcView).
Transform
(srcView);
Microsoft.ML.Tests (157)
ImagesTests.cs (32)
150
var cropped = new ImageResizingTransformer(env, "ImageCropped", 100, 100, "ImageReal", ImageResizingEstimator.ResizingKind.IsoPad).
Transform
(images);
188
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
190
IDataView grey = new ImageGrayscalingTransformer(env, ("ImageGrey", "ImageCropped")).
Transform
(cropped);
245
var transformedData = model.
Transform
(data);
346
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
348
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, interleavePixelColors: true, scaleImage: 2f / 19, offsetImage: 30).
Transform
(cropped);
350
ImagePixelExtractingEstimator.ColorBits.All, interleavedColors: true, scaleImage: 19 / 2f, offsetImage: -30).
Transform
(pixels);
421
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
422
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", interleavePixelColors: true, scaleImage: 2f / 19, offsetImage: 30).
Transform
(cropped);
425
interleavedColors: true, scaleImage: 19 / 2f, offsetImage: -30).
Transform
(pixels);
497
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
499
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, orderOfExtraction: ImagePixelExtractingEstimator.ColorsOrder.ABRG).
Transform
(cropped);
501
ImagePixelExtractingEstimator.ColorBits.All, orderOfColors: ImagePixelExtractingEstimator.ColorsOrder.ABRG).
Transform
(pixels);
572
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
573
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, scaleImage: 2f / 19, offsetImage: 30).
Transform
(cropped);
576
ImagePixelExtractingEstimator.ColorBits.All, scaleImage: 19 / 2f, offsetImage: -30).
Transform
(pixels);
647
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
648
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", scaleImage: 2f / 19, offsetImage: 30).
Transform
(cropped);
651
scaleImage: 19 / 2f, offsetImage: -30).
Transform
(pixels);
722
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
724
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All, interleavePixelColors: true).
Transform
(cropped);
727
ImagePixelExtractingEstimator.ColorBits.All, interleavedColors: true).
Transform
(pixels);
798
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
800
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", interleavePixelColors: true).
Transform
(cropped);
802
IDataView backToImages = new VectorToImageConvertingTransformer(env, "ImageRestored", imageHeight, imageWidth, "ImagePixels", interleavedColors: true).
Transform
(pixels);
873
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
875
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped", ImagePixelExtractingEstimator.ColorBits.All).
Transform
(cropped);
878
ImagePixelExtractingEstimator.ColorBits.All).
Transform
(pixels);
949
var cropped = new ImageResizingTransformer(env, "ImageCropped", imageWidth, imageHeight, "ImageReal").
Transform
(images);
950
var pixels = new ImagePixelExtractingTransformer(env, "ImagePixels", "ImageCropped").
Transform
(cropped);
952
IDataView backToImages = new VectorToImageConvertingTransformer(env, "ImageRestored", imageHeight, imageWidth, "ImagePixels").
Transform
(pixels);
1187
var resizedDV = model.
Transform
(dataView);
OnnxConversionTest.cs (10)
828
var onnxResult = onnxTransformer.
Transform
(data);
977
var transformedData = model.
Transform
(dataView);
990
var onnxResult = onnxTransformer.
Transform
(dataView);
1517
var onnxResult = onnxTransformer.
Transform
(dataView);
1634
var onnxResult = onnxTransformer.
Transform
(dataView);
1747
var loadedData = loadedModel.
Transform
(dataView).Preview(1);
1777
var mappedData = pipeline1.Fit(originalData).
Transform
(originalData);
1808
var onnxResult = onnxTransformer.
Transform
(reloadedData);
1821
var onnxResult2 = onnxTransformer2.
Transform
(originalData);
2256
var onnxResult = onnxTransformer.
Transform
(dataView);
RangeFilterTests.cs (1)
31
data = ML.Transforms.Conversion.Hash("Key", "Strings", numberOfBits: 20).Fit(data).
Transform
(data);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
51
var transformedData = pipeline.Fit(data).
Transform
(data);
474
var featureContributionData = featureContributionCalculation.Fit(transfomedData).
Transform
(transfomedData);
Scenarios\Api\TestApi.cs (2)
180
xf = mlContext.Transforms.Conversion.ConvertType("Label", outputKind: DataKind.Boolean).Fit(xf).
Transform
(xf);
481
var inputWithKey = mlContext.Transforms.Conversion.MapValueToKey("KeyStrat", "TextStrat").Fit(input).
Transform
(input);
Scenarios\OvaTest.cs (4)
33
.Fit(textData).
Transform
(textData));
67
.Fit(textData).
Transform
(textData));
103
.Fit(textData).
Transform
(textData));
137
.Fit(textData).
Transform
(textData));
TermEstimatorTests.cs (3)
87
DataSaverUtils.SaveDataView(ch, saver, pipe.Fit(data).
Transform
(data), fs, keepHidden: true);
123
var result = transformer.
Transform
(dataView);
143
var result = termTransformer.
Transform
(dataView);
TrainerEstimators\CalibratorEstimators.cs (5)
184
calibratorPlattTransformer.
Transform
(dataArray[i]);
190
calibratorFixedPlattTransformer.
Transform
(dataArray[i]);
196
calibratorNaiveTransformer.
Transform
(dataArray[i]);
202
calibratorIsotonicTransformer.
Transform
(dataArray[i]);
267
var newCalibratedData = newPlattCalibratorTransformer.
Transform
(calibratorTestData.ScoredData).Preview();
TrainerEstimators\OneDalEstimators.cs (2)
59
var preprocessedTrainingData = preprocessingPipeline.Fit(trainingData).
Transform
(trainingData);
60
var preprocessedTestingData = preprocessingPipeline.Fit(trainingData).
Transform
(testingData);
TrainerEstimators\OnlineLinearTests.cs (2)
27
var regressionTrainData = regressionPipe.Fit(regressionData).
Transform
(regressionData);
41
var binaryTrainData = binaryPipe.Fit(binaryData).
Transform
(binaryData);
TrainerEstimators\SdcaTests.cs (2)
29
.Fit(data).
Transform
(data);
43
var mcData = ML.Transforms.Conversion.MapValueToKey("Label").Fit(data).
Transform
(data);
Transformers\CharTokenizeTests.cs (1)
63
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\ConcatTests.cs (1)
127
data = concater.
Transform
(data);
Transformers\ConvertTests.cs (5)
187
var actualConvertedValues = allTypesPipe.Fit(allTypesDataView).
Transform
(allTypesDataView);
262
var convertedValues = allInputTypesDataPipe.Fit(allInputTypesDataView).
Transform
(allInputTypesDataView);
293
var output = pipe.Fit(dataView).
Transform
(dataView);
323
var result = pipe.Fit(dataView).
Transform
(dataView);
402
var outDataNew = modelNew.
Transform
(dataView);
Transformers\CopyColumnEstimatorTests.cs (4)
52
var result = transformer.
Transform
(dataView);
85
var result = transformer.
Transform
(xyDataView);
119
var result = transformer.
Transform
(dataView);
142
var result = transformer.
Transform
(term);
Transformers\CustomMappingTests.cs (1)
106
var badData1 = ML.Transforms.CopyColumns("Text1", "Float1").Fit(data).
Transform
(data);
Transformers\FeatureSelectionTests.cs (1)
87
var savedData = ML.Data.TakeRows(trans.
Transform
(data), 4);
Transformers\HashTests.cs (2)
78
var result = pipe.Fit(dataView).
Transform
(dataView);
119
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\KeyToBinaryVectorEstimatorTest.cs (6)
52
}).Fit(dataView).
Transform
(dataView);
71
.Fit(data).
Transform
(data);
98
dataView = termTransformer.
Transform
(dataView);
107
var result = pipe.Fit(dataView).
Transform
(dataView);
154
dataView = transformer.
Transform
(dataView);
156
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\KeyToValueTests.cs (5)
41
new ValueToKeyMappingEstimator.ColumnOptions("B", "VectorString") }).Fit(data).
Transform
(data);
43
var badData1 = new ColumnCopyingTransformer(Env, ("A", "BareKey")).
Transform
(data);
44
var badData2 = new ColumnCopyingTransformer(Env, ("B", "VectorString")).
Transform
(data);
55
IDataView savedData = est.Fit(data).
Transform
(data);
76
.Fit(data).
Transform
(data);
Transformers\KeyToVectorEstimatorTests.cs (6)
59
}).Fit(dataView).
Transform
(dataView);
81
.Fit(data).
Transform
(data);
112
dataView = termTransformer.
Transform
(dataView);
125
var result = pipe.Fit(dataView).
Transform
(dataView);
213
dataView = transformer.
Transform
(dataView);
218
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\NAIndicatorTests.cs (2)
81
var result = pipe.Fit(dataView).
Transform
(dataView);
117
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\NAReplaceTests.cs (2)
76
var transformedDataview = pipe.Fit(dataView).
Transform
(dataView);
176
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\NormalizerTests.cs (41)
78
var badData1 = new ColumnCopyingTransformer(Env, ("float1", "int1")).
Transform
(data);
79
var badData2 = new ColumnCopyingTransformer(Env, ("float4", "float0")).
Transform
(data);
90
var transformedData = est.Fit(data).
Transform
(data);
487
var data1 = est1.Fit(data).
Transform
(data);
488
var data2 = est2.Fit(data).
Transform
(data);
489
var data3 = est3.Fit(data).
Transform
(data);
490
var data4 = est4.Fit(data).
Transform
(data);
491
var data5 = est5.Fit(data).
Transform
(data);
507
var data6 = est6.Fit(data).
Transform
(data);
508
var data7 = est7.Fit(data).
Transform
(data);
509
var data8 = est8.Fit(data).
Transform
(data);
520
var data9 = est9.Fit(data).
Transform
(data);
521
var data10 = est10.Fit(data).
Transform
(data);
522
var data11 = est11.Fit(data).
Transform
(data);
533
var data12 = est12.Fit(data).
Transform
(data);
534
var data13 = est13.Fit(data).
Transform
(data);
535
var data14 = est14.Fit(data).
Transform
(data);
546
var data15 = est15.Fit(data).
Transform
(data);
547
var data16 = est16.Fit(data).
Transform
(data);
548
var data17 = est17.Fit(data).
Transform
(data);
559
var data18 = est18.Fit(data).
Transform
(data);
560
var data19 = est19.Fit(data).
Transform
(data);
561
var data20 = est20.Fit(data).
Transform
(data);
600
var data1 = est1.Fit(data).
Transform
(data);
601
var data2 = est2.Fit(data).
Transform
(data);
602
var data3 = est3.Fit(data).
Transform
(data);
603
var data4 = est4.Fit(data).
Transform
(data);
604
var data5 = est5.Fit(data).
Transform
(data);
605
var data6 = est6.Fit(data).
Transform
(data);
606
var data7 = est7.Fit(data).
Transform
(data);
607
var data8 = est8.Fit(data).
Transform
(data);
608
var data9 = est9.Fit(data).
Transform
(data);
609
var data10 = est10.Fit(data).
Transform
(data);
739
var result = pipe.Fit(dataView).
Transform
(dataView);
800
var result = pipe.Fit(dataView).
Transform
(dataView);
860
var result = pipe.Fit(dataView).
Transform
(dataView);
915
var transformedData = normalizeTransform.
Transform
(data);
917
var noCdfData = normalizeNoCdfTransform.
Transform
(data);
956
var transformedData = normalizeTransform.
Transform
(data);
958
var noCdfData = normalizeNoCdfTransform.
Transform
(data);
1056
var transformedData = model.
Transform
(data);
Transformers\PcaTests.cs (1)
60
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\RffTests.cs (2)
77
var savedData = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
104
var result = est.Fit(dataView).
Transform
(dataView);
Transformers\TextFeaturizerTests.cs (1)
495
var outdata = ML.Data.TakeRows(est.Fit(data).
Transform
(data), 4);
Transformers\TextNormalizer.cs (1)
84
var result = pipe.Fit(dataView).
Transform
(dataView);
Transformers\ValueMappingTests.cs (6)
69
var result = t.
Transform
(dataView);
198
var result = t.
Transform
(dataView);
239
var result = t.
Transform
(dataView);
280
var result = t.
Transform
(dataView);
321
var result = t.
Transform
(dataView);
781
IDataView transformedData = pipeline.Fit(data).
Transform
(data);
Transformers\WordEmbeddingsTests.cs (2)
51
var savedData = ML.Data.TakeRows(pipe.Fit(words).
Transform
(words), 4);
94
var savedData = ML.Data.TakeRows(pipe.Fit(words).
Transform
(words), 10);
Transformers\WordTokenizeTests.cs (2)
66
var result = pipe.Fit(dataView).
Transform
(dataView);
104
var result = pipe.Fit(dataView).
Transform
(dataView);
Microsoft.ML.TorchSharp.Tests (4)
QATests.cs (1)
89
var transformedData = model.
Transform
(dataView);
TextClassificationTests.cs (3)
318
var preppedData = dataPrepTransformer.
Transform
(dataView);
403
var score = transformer.
Transform
(dataView).GetColumn<float>(transformerSchema[3].Name);
444
var transformedData = model.
Transform
(dataSplit.TestSet);
Microsoft.ML.Transforms (11)
Dracula\CountTargetEncodingTransformer.cs (2)
292
return new CountTargetEncodingTransformer(_host, hashingTransformer, _countTableEstimator.Fit(hashingTransformer.
Transform
(input)));
400
var hashedData = HashingTransformer.
Transform
(input);
EntryPoints\TextAnalytics.cs (1)
125
var view = est.Fit(input.Data).
Transform
(input.Data);
LearnerFeatureSelection.cs (1)
111
return new SlotsDroppingTransformer(host, column).
Transform
(input) as IDataTransform;
NAHandling.cs (1)
70
var xf = new MissingValueIndicatorTransformer(h, input).
Transform
(input.Data);
Text\SentimentAnalyzingTransform.cs (5)
85
input = copyTransformer.
Transform
(input);
93
input = copyTransformer.
Transform
(input);
106
input = copyTransformer.
Transform
(input);
134
return new ColumnCopyingTransformer(env, hiddenNames.Select(x => (Name: x.Key, Source: x.Value)).ToArray()).
Transform
(input);
142
input = new ColumnCopyingTransformer(env, hiddenNames.Select(x => (outputColumnName: x.Key, inputColumnName: x.Value)).ToArray()).
Transform
(input);
Text\WordHashBagProducingTransform.cs (1)
374
.Append(new NgramHashingEstimator(h, ngramHashColumns).Fit(hashing.
Transform
(input)))