24 instantiations of TransformerChain
Microsoft.ML.Data (10)
DataLoadSave\CompositeDataLoader.cs (1)
41Transformer = transformerChain ?? new TransformerChain<TLastTransformer>();
DataLoadSave\EstimatorChain.cs (1)
80return new TransformerChain<TLastTransformer>(xfs, _scopes);
DataLoadSave\EstimatorExtensions.cs (1)
95return new TransformerChain<TTrans>(start, transformer);
DataLoadSave\LegacyCompositeDataLoader.cs (1)
405var result = new TransformerChain<ITransformer>();
DataLoadSave\TransformerChain.cs (4)
177return new TransformerChain<ITransformer>(xfs.ToArray(), scopes.ToArray()); 184return new TransformerChain<TNewLast>(_transformers.AppendElement(transformer), _scopes.AppendElement(scope)); 280=> new TransformerChain<ITransformer>(env, ctx); 286=> new TransformerChain<ITransformer>(transformer).SaveTo(env, outputStream);
Model\ModelOperationsCatalog.cs (2)
47var chainedModel = model == null ? null : new TransformerChain<ITransformer>(model); 247return new TransformerChain<ITransformer>();
Microsoft.ML.IntegrationTests (1)
Prediction.cs (1)
69var newModel = new TransformerChain<BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>(transformers.ToArray());
Microsoft.ML.TimeSeries (2)
PredictionEngine.cs (2)
116new TransformerChain<ITransformer>(transformerChainAccessor.Transformers, transformerChainAccessor.Scopes).SaveTo(env, stream); 135return new TransformerChain<ITransformer>(transformersClone, scopeClone);
Microsoft.ML.Transforms (11)
CountFeatureSelection.cs (1)
215var transformerChain = new TransformerChain<SlotsDroppingTransformer>(
Dracula\CountTargetEncodingTransformer.cs (3)
380var chain = new TransformerChain<ITransformer>(HashingTransformer, CountTable); 387ITransformer chain = new TransformerChain<ITransformer>(HashingTransformer, CountTable); 394var chain = new TransformerChain<ITransformer>(HashingTransformer, CountTable);
MutualInformationFeatureSelection.cs (1)
206var transformerChain = new TransformerChain<SlotsDroppingTransformer>(
OneHotEncoding.cs (1)
132_transformer = new TransformerChain<ITransformer>(term.Fit(input));
OneHotHashEncoding.cs (1)
174_transformer = new TransformerChain<ITransformer>(hash.Fit(input));
Text\TextFeaturizingEstimator.cs (2)
448TransformerChain<ITransformer> chain = new TransformerChain<ITransformer>(); 728_chain = new TransformerChain<ITransformer>();
Text\WordHashBagProducingTransform.cs (2)
156return new TransformerChain<ITransformer>(new[] { t1, t2, t3 }); 330var chain = new TransformerChain<ITransformer>();
280 references to TransformerChain
Microsoft.ML.AutoML (5)
API\BinaryClassificationExperiment.cs (1)
423var model = pipeline.Fit(trainTestDatasetManager.LoadTrainDataset(_context, settings));
API\MulticlassClassificationExperiment.cs (1)
401var model = pipeline.Fit(trainTestDatasetManager.LoadTrainDataset(_context, settings));
API\RegressionExperiment.cs (1)
428var model = pipeline.Fit(trainTestDatasetManager.LoadTrainDataset(_context, settings));
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
52var model = mlnetPipeline.Fit(split.TrainSet); 75var model = mlnetPipeline.Fit(trainTestDatasetManager.LoadTrainDataset(_mLContext!, settings));
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
1377var model = pipeline.Fit(data);
Microsoft.ML.Data (24)
DataLoadSave\CompositeDataLoader.cs (3)
33public readonly TransformerChain<TLastTransformer> Transformer; 35public CompositeDataLoader(IDataLoader<TSource> loader, TransformerChain<TLastTransformer> transformerChain = null) 48ctx.LoadModel<TransformerChain<TLastTransformer>, SignatureLoadModel>(host, out Transformer, TransformerDirectory);
DataLoadSave\CompositeLoaderEstimator.cs (1)
36var xfChain = _estimatorChain.Fit(idv);
DataLoadSave\EstimatorChain.cs (2)
16public sealed class EstimatorChain<TLastTransformer> : IEstimator<TransformerChain<TLastTransformer>> 58public TransformerChain<TLastTransformer> Fit(IDataView input)
DataLoadSave\EstimatorExtensions.cs (1)
89public static TransformerChain<TTrans> Append<TTrans>(this ITransformer start, TTrans transformer)
DataLoadSave\LegacyCompositeDataLoader.cs (2)
403internal TransformerChain<ITransformer> GetTransformer() 405var result = new TransformerChain<ITransformer>();
DataLoadSave\TransformerChain.cs (8)
16[assembly: LoadableClass(typeof(TransformerChain<ITransformer>), typeof(TransformerChain), null, typeof(SignatureLoadModel), 76loaderAssemblyName: typeof(TransformerChain<>).Assembly.FullName); 131var chain = GetModelFor(scope); 150var chain = GetModelFor(scope); 165public TransformerChain<ITransformer> GetModelFor(TransformerScope scopeFilter) 180public TransformerChain<TNewLast> Append<TNewLast>(TNewLast transformer, TransformerScope scope = TransformerScope.Everything) 279private static TransformerChain<ITransformer> Create(IHostEnvironment env, ModelLoadContext ctx) 291TransformerChain<ITransformer> transformChain = (chain as LegacyCompositeDataLoader).GetTransformer();
Model\ModelOperationsCatalog.cs (6)
36/// the returned value will be an empty <see cref="TransformerChain{TLastTransformer}"/>.</param> 47var chainedModel = model == null ? null : new TransformerChain<ITransformer>(model); 62/// the returned value will be an empty <see cref="TransformerChain{TLastTransformer}"/>.</param> 80/// be an empty <see cref="TransformerChain{TLastTransformer}"/>.</param> 102/// be an empty <see cref="TransformerChain{TLastTransformer}"/>.</param> 231var chain = composite.Transformer;
TrainCatalog.cs (1)
109scoredTest = (Unsafe.As<TransformerChain<ITransformer>>(model)).Transform(split.TestSet, TransformerScope.Everything);
Microsoft.ML.Fairlearn (1)
Reductions\GridSearchTrialRunner.cs (1)
79var model = pipeline.Fit(trainDataset);
Microsoft.ML.IntegrationTests (67)
DataTransformation.cs (1)
149var model = pipeline.Fit(data);
Debugging.cs (2)
113var model = pipeline.Fit(data); 180var model = pipeline.Fit(data);
Evaluation.cs (7)
71var model = pipeline.Fit(data); 100var model = pipeline.Fit(data); 128var model = pipeline.Fit(data); 158var model = pipeline.Fit(data); 180var model = pipeline.Fit(data); 274var model = pipeline.Fit(data); 306var model = pipeline.Fit(data);
Explainability.cs (9)
42var model = pipeline.Fit(data); 60linearPredictor = (loadedModel as TransformerChain<ITransformer>).LastTransformer as RegressionPredictionTransformer<FastTreeRegressionModelParameters>; 100var model = pipeline.Fit(data); 124var model = pipeline.Fit(data); 151var model = pipeline.Fit(data); 178var model = pipeline.Fit(data); 215var model = pipeline.Fit(data); 252var model = pipeline.Fit(data); 290var model = pipeline.Fit(data);
IntrospectiveTraining.cs (13)
43var model = pipeline.Fit(data); 87var model = pipeline.Fit(data); 148var model = pipeline.Fit(data); 189var model = pipeline.Fit(data); 231var model = pipeline.Fit(data); 268var model = pipeline.Fit(data); 296var model = pipeline.Fit(data); 343var model = pipeline.Fit(data); 399var model = pipeline.Fit(data); 403var kMeansModel = (modelComponents[1] as TransformerChain<ClusteringPredictionTransformer<KMeansModelParameters>>).LastTransformer; 404var mcLrModel = (modelComponents[2] as TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>>).LastTransformer; 417private IEstimator<TransformerChain<ClusteringPredictionTransformer<KMeansModelParameters>>> StepOne(MLContext mlContext) 430private IEstimator<TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>>> StepTwo(MLContext mlContext)
ModelFiles.cs (12)
53var model = pipeline.Fit(data); 100var model = pipeline.Fit(data); 180Assert.Empty(Assert.IsType<TransformerChain<ITransformer>>(t)); 181Assert.Empty(Assert.IsType<TransformerChain<ITransformer>>(t1)); 209var fromComposite = Assert.Single(Assert.IsType<TransformerChain<ITransformer>>( 365Assert.True(loadedWithSchema is TransformerChain<ITransformer>); 366Assert.False((loadedWithSchema as TransformerChain<ITransformer>).Any()); 371Assert.True(loadedWithLoader is TransformerChain<ITransformer>); 372Assert.False((loadedWithLoader as TransformerChain<ITransformer>).Any()); 399Assert.Empty(Assert.IsType<TransformerChain<ITransformer>>(loadedWithSchema)); 400Assert.Empty(Assert.IsType<TransformerChain<ITransformer>>(loadedWithLoader)); 415var chainFromLoader = compositeLoader.Transformer;
ONNX.cs (4)
47var model = pipeline.Fit(data); 97var model = pipeline.Fit(data); 111var onnxWorkaroundPipeline = onnxModel.Append( 149var model = pipeline.Fit(data);
Prediction.cs (2)
56var model = pipeline.Fit(data); 69var newModel = new TransformerChain<BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>(transformers.ToArray());
SchemaDefinitionTests.cs (3)
38var model1 = pipeline1.Fit(data); 42var model2 = pipeline2.Fit(data); 70var model = pipeline.Fit(loader.Load(data));
Training.cs (11)
54var featurization = featurizationPipeline.Fit(trainData); 99var featurization = featurizationPipeline.Fit(data); 143var featurization = featurizationPipeline.Fit(data); 187var featurization = featurizationPipeline.Fit(data); 231var featurization = featurizationPipeline.Fit(data); 274var featurization = featurizationPipeline.Fit(data); 325var featurization = featurizationPipeline.Fit(data); 369var featurization = featurizationPipeline.Fit(data); 417var featurization = featurizationPipeline.Fit(data); 461var binaryClassificationModel = binaryClassificationPipeline.Fit(data); 493var binaryClassificationModel = binaryClassificationPipeline.Fit(data);
Validation.cs (3)
49Assert.IsType<TransformerChain<RegressionPredictionTransformer<OlsModelParameters>>>(cvResult[0].Model); 130var model = preprocessor.Append(trainedModel); 157var model = pipeline.Fit(data);
Microsoft.ML.OnnxTransformer (2)
DnnImageFeaturizerTransform.cs (2)
83public sealed class DnnImageFeaturizerEstimator : IEstimator<TransformerChain<ColumnCopyingTransformer>> 107public TransformerChain<ColumnCopyingTransformer> Fit(IDataView input)
Microsoft.ML.OnnxTransformerTest (5)
DnnImageFeaturizerTest.cs (2)
154var transformer = est.Fit(dataView); 234var model = trainingPipeline.Fit(data);
OnnxTransformTests.cs (3)
261var model = pipe.Fit(data); 312var model = pipe.Fit(data); 645var model = pipeline.Fit(dataView);
Microsoft.ML.PerformanceTests (8)
ImageClassificationBench.cs (1)
78public TransformerChain<KeyToValueMappingTransformer> TrainResnetV250()
KMeansAndLogisticRegressionBench.cs (1)
44var model = estimatorPipeline.Fit(input);
PredictionEngineBench.cs (2)
62var model = pipeline.Fit(data); 97var model = pipeline.Fit(data);
StochasticDualCoordinateAscentClassifierBench.cs (3)
36private TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>> _trainedModel; 57public TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>> TrainIris() => Train(_dataPath); 59private TransformerChain<MulticlassPredictionTransformer<MaximumEntropyModelParameters>> Train(string dataPath)
TextPredictionEngineCreation.cs (1)
34var model = pipeline.Fit(data);
Microsoft.ML.Predictor.Tests (2)
TestIniModels.cs (2)
532var model = pipeline.Fit(idv); 571var model = pipeline.Fit(idv);
Microsoft.ML.Samples (47)
Dynamic\ModelOperations\OnnxConversion.cs (1)
67var transformer = wholePipeline.Fit(trainTestOriginalData.TrainSet);
Dynamic\TensorFlow\TextClassification.cs (1)
99var model =
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
34var model = pipeline.Fit(data);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
30var model0 = pipeline.Fit(data); 41var linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>;
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
86var trainedModel = pipeline.Fit(trainDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
121var trainedModel = pipeline.Fit(trainDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
111var trainedModel = pipeline.Fit(trainDataset);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
103var trainedModel = pipeline.Fit(trainDataset);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
36var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
44var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
39var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
49var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
36var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
42var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
37var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
37var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
36var model = pipeline.Fit(data);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
39var model0 = pipeline.Fit(data); 50var linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as MulticlassPredictionTransformer<MaximumEntropyModelParameters>;
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
44var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
53var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
44var model = pipeline.Fit(trainingData);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
53var model = pipeline.Fit(trainingData);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
36var model = pipeline.Fit(data);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (2)
38var model0 = pipeline.Fit(data); 49var linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as RankingPredictionTransformer<FastTreeRankingModelParameters>;
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
48var model = pipeline.Fit(split.TrainSet);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
57var model = pipeline.Fit(split.TrainSet);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
35var model = pipeline.Fit(data);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (2)
37var model0 = pipeline.Fit(data); 48var linearPredictor = (model as TransformerChain<ITransformer>).LastTransformer as RegressionPredictionTransformer<OlsModelParameters>;
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (1)
49var model = pipeline.Fit(dataView);
Dynamic\Transforms\CalculateFeatureContribution.cs (2)
30var transformer = transformPipeline.Fit(data); 57var scoringPipeline = transformer.Append(linearModel).Append(
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (2)
30var transformer = transformPipeline.Fit(data); 59var scoringPipeline = transformer.Append(linearModel)
Dynamic\Transforms\Conversion\Hash.cs (1)
49var transformer = pipeline.Fit(data);
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (1)
54var textTransformer = textPipeline.Fit(emptyDataView);
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (1)
44var textTransformer = textPipeline.Fit(emptyDataView);
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (1)
51var transformer = pipeline.Fit(dataview);
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
56var textTransformer = textPipeline.Fit(dataview);
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
64var textTransformer = textPipeline.Fit(dataview);
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (1)
37var textTransformer = textPipeline.Fit(emptyDataView);
Dynamic\Transforms\Text\RemoveStopWords.cs (1)
36var textTransformer = textPipeline.Fit(emptyDataView);
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (1)
35var textTransformer = textPipeline.Fit(emptyDataView);
Dynamic\WithOnFitDelegate.cs (1)
55var model = pipeline.Fit(data);
Microsoft.ML.Samples.GPU (5)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
99var model =
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
86var trainedModel = pipeline.Fit(trainDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
121var trainedModel = pipeline.Fit(trainDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
111var trainedModel = pipeline.Fit(trainDataset);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
103var trainedModel = pipeline.Fit(trainDataset);
Microsoft.ML.TensorFlow.Tests (13)
TensorFlowEstimatorTests.cs (2)
169using var model = pipe.Fit(data); 262using var model = pipe.Fit(data);
TensorflowTests.cs (11)
158using var transformer = pipeEstimator.Fit(data); 673using var trainedModel = pipe.Fit(trainData); 849using var trainedModel = pipe.Fit(preprocessedTrainData); 897using var trainedModel = pipe.Fit(trainData); 1168using var transformer = pipeEstimator.Fit(data); 1289using var pipelineModel = _mlContext.Model.LoadTensorFlowModel(modelLocation).ScoreTensorFlowModel(new[] { "Prediction/Softmax" }, new[] { "Features" }) 1422using var trainedModel = pipeline.Fit(trainDataset); 1525using var trainedModel = pipeline.Fit(trainDataset); 1684using var trainedModel = pipeline.Fit(trainDataset); 1816using var trainedModel = pipeline.Fit(trainDataset); 2067var transformer = pipeline.Fit(data);
Microsoft.ML.Tests (72)
DatabaseLoaderTests.cs (1)
209var model = pipeline.Fit(trainingData);
ImagesTests.cs (3)
80var model = pipe.Fit(data); 91var transformerChain = model2 as TransformerChain<ITransformer>;
OnnxConversionTest.cs (2)
798using var model = pipeline.Fit(data); 2241using var model = pipeline.Fit(dataView);
PermutationFeatureImportanceTests.cs (1)
106var model = ML.Transforms.CopyColumns("Label", "Label").Append(ML.Regression.Trainers.OnlineGradientDescent()).Fit(data);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (10)
113var model = pipeline.Fit(data); 184var model = pipeline.Fit(trainData); 239var trainedModel = pipeline.Fit(trainData); 355var model = pipeline.Fit(data); 395var model = pipeline.Fit(data); 430var model = pipeline.Fit(data); 466var model = pipeline.Fit(data); 622var model = fullLearningPipeline.Fit(data); 658var model = pipeline.Fit(split.TrainSet); 749var model = estimator.Fit(cachedTrainData);
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
39var model = pipeline.Fit(data).GetModelFor(TransformerScope.Scoring);
Scenarios\Api\Estimators\Extensibility.cs (1)
48var model = pipeline.Fit(data).GetModelFor(TransformerScope.Scoring);
Scenarios\Api\Estimators\MultithreadedPrediction.cs (1)
37var model = pipeline.Fit(data);
Scenarios\Api\Estimators\PredictAndMetadata.cs (3)
36var model = pipeline.Fit(data).GetModelFor(TransformerScope.Scoring); 85var model = pipeline.Fit(data); 119var model2 = pipelineUnamed.Fit(data2);
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (2)
35var model = pipeline.Fit(data); 74var model = pipeline.Fit(data);
Scenarios\IrisPlantClassificationTests.cs (1)
46var trainedModel = pipe.Fit(trainData);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
45var trainedModel = pipe.Fit(trainData);
Scenarios\RegressionTest.cs (1)
40var model = trainingPipeline.Fit(trainingDataView);
Scenarios\WordBagTest.cs (2)
38var textTransformer = textPipeline.Fit(dataview); 73var textTransformer = textPipeline.Fit(dataview);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
44var trainedModel = pipe.Fit(trainData);
TrainerEstimators\CalibratorEstimators.cs (1)
114Transformer = ((TransformerChain<BinaryPredictionTransformer<LinearBinaryModelParameters>>)transformer).LastTransformer as BinaryPredictionTransformer<LinearBinaryModelParameters>,
TrainerEstimators\FAFMEstimator.cs (1)
28var model = pipeline.Fit(dataView);
TrainerEstimators\LbfgsTests.cs (8)
64var transformerChain = pipe.Fit(dataView) as TransformerChain<BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>; 90var transformer = pipe.Fit(dataView) as TransformerChain<BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>>; 128var lastTransformer = ((TransformerChain<ITransformer>)transformerChain).LastTransformer as BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>; 171var transformer = pipeWithTrainer.Fit(dataView); 193var transformer = pipeWithTrainer.Fit(dataView); 223var lastTransformer = ((TransformerChain<ITransformer>)transformerChain).LastTransformer as MulticlassPredictionTransformer<MaximumEntropyModelParameters>;
TrainerEstimators\MetalinearEstimators.cs (1)
102var model = pipeline.Fit(data);
TrainerEstimators\SdcaTests.cs (4)
182var modelWithoutWeights = sdcaWithoutWeightMulticlass.Fit(data); 183var modelWithWeights = sdcaWithWeightMulticlass.Fit(data); 281var model = pipeline.Fit(data); 315var model = pipeline.Fit(data);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (13)
333var model = pipeline.Fit(dataView); 379var model = pipeline.Fit(dataView); 418var model = pipeline.Fit(dataView); 457var model = pipeline.Fit(dataView); 495var model = pipeline.Fit(dataView); 533var model = pipeline.Fit(dataView); 571var model = pipeline.Fit(dataView); 609var model = pipeline.Fit(dataView); 666var model = pipeline.Fit(dataView); 698var secondModel = secondPipeline.Fit(dataView); 742var wrongModel = wrongPipeline.Fit(dataView); 753var model = pipeline.Fit(dataView); 809var model = pipeline.Fit(trainData);
TrainerEstimators\TreeEstimators.cs (5)
753var model = pipeline.Fit(trainingData); 783var model = pipe.Fit(dataView); 991var transformer = estimator.Fit(dataView); 1009var transformer = estimator.Fit(dataView); 1057var transformer = trainer.Fit(dataView);
Transformers\KeyToVectorEstimatorTests.cs (1)
263var transformer = pipeline.Fit(featurizedData);
Transformers\NormalizerTests.cs (1)
256var transformer = est.Fit(data);
Transformers\SelectColumnsTests.cs (3)
135var transformer = chain.Fit(dataView); 158var transformer = chain.Fit(dataView); 200var transformer = est.Fit(dataView);
Transformers\TextFeaturizerTests.cs (1)
697var transformer = est.Fit(data);
Transformers\ValueMappingTests.cs (2)
112var t = estimator.Fit(dataView); 561var t = estimator.Fit(dataView);
Microsoft.ML.TimeSeries.Tests (3)
TimeSeriesDirectApi.cs (3)
239var model = pipeline.Fit(dataView); 316var model = pipeline.Fit(dataView); 449var model = ml.Transforms.Text.FeaturizeText("Text_Featurized", "Text")
Microsoft.ML.TorchSharp.Tests (11)
NerTests.cs (3)
79var transformer = estimator.Fit(dataView); 158var transformer = estimator.Fit(dataView); 232var transformer = estimator.Fit(trainTest.TrainSet);
ObjectDetectionTests.cs (2)
81var model = pipeline.Fit(data); 100var prevModel = filteredPipeline.Fit(data);
QATests.cs (1)
52var transformer = estimator.Fit(dataView);
TextClassificationTests.cs (5)
108var transformer = estimator.Fit(dataView); 111var filteredModel = transformer.GetModelFor(TransformerScope.Scoring); 180var model = pipeline.Fit(trainTestSplit.TrainSet); 246var transformer = estimator.Fit(dataView); 330var transformer = estimator.Fit(preppedData);
Microsoft.ML.Transforms (14)
CountFeatureSelection.cs (1)
215var transformerChain = new TransformerChain<SlotsDroppingTransformer>(
Dracula\CountTargetEncodingTransformer.cs (3)
229else if (transformer is TransformerChain<ITransformer> chain) 380var chain = new TransformerChain<ITransformer>(HashingTransformer, CountTable); 394var chain = new TransformerChain<ITransformer>(HashingTransformer, CountTable);
MutualInformationFeatureSelection.cs (1)
206var transformerChain = new TransformerChain<SlotsDroppingTransformer>(
OneHotEncoding.cs (1)
125private readonly TransformerChain<ITransformer> _transformer;
OneHotHashEncoding.cs (1)
167private readonly TransformerChain<ITransformer> _transformer;
Text\TextFeaturizingEstimator.cs (6)
448TransformerChain<ITransformer> chain = new TransformerChain<ITransformer>(); 609private static TransformerChain<ITransformer> AddToChainAndTransform(TransformerChain<ITransformer> chain, ITransformer transformer, ref IDataView view) 678private readonly TransformerChain<ITransformer> _chain; 680internal Transformer(IHostEnvironment env, TransformerChain<ITransformer> chain) 762ctx.LoadModel<TransformerChain<ITransformer>, SignatureLoadModel>(env, out _chain, "Chain");
Text\WordHashBagProducingTransform.cs (1)
330var chain = new TransformerChain<ITransformer>();