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