1 write to Trainers
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
497
Trainers
= new MulticlassClassificationTrainers(this);
155 references to Trainers
Microsoft.ML.AutoML (23)
SweepableEstimator\Estimators\FastForest.cs (1)
23
return context.MulticlassClassification.
Trainers
.OneVersusAll(context.BinaryClassification.Trainers.FastForest(option), labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\FastTree.cs (1)
28
return context.MulticlassClassification.
Trainers
.OneVersusAll(context.BinaryClassification.Trainers.FastTree(option), labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\Images.cs (1)
54
return context.MulticlassClassification.
Trainers
.ImageClassification(option);
SweepableEstimator\Estimators\Lbfgs.cs (2)
23
return context.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(option);
78
return context.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, param.LabelColumnName);
SweepableEstimator\Estimators\LightGbm.cs (1)
33
return context.MulticlassClassification.
Trainers
.LightGbm(option);
SweepableEstimator\Estimators\NamedEntityRecognitionMulti.cs (1)
17
return context.MulticlassClassification.
Trainers
.NamedEntityRecognition(
SweepableEstimator\Estimators\ObjectDetection.cs (1)
32
return context.MulticlassClassification.
Trainers
.ObjectDetection(option);
SweepableEstimator\Estimators\QuestionAnswering.cs (1)
14
return context.MulticlassClassification.
Trainers
.QuestionAnswer(
SweepableEstimator\Estimators\Sdca.cs (2)
41
return context.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(option);
78
return context.MulticlassClassification.
Trainers
.OneVersusAll(binaryEstimator: binaryTrainer, labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\TextClassification.cs (1)
17
return context.MulticlassClassification.
Trainers
.TextClassification(
TrainerExtensions\MultiTrainerExtensions.cs (11)
29
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
51
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
71
return mlContext.MulticlassClassification.
Trainers
.LightGbm(options);
94
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
114
return mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(options);
137
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
159
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
181
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
203
return mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName);
224
return mlContext.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(options);
242
return mlContext.MulticlassClassification.
Trainers
.ImageClassification(options);
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
2014
var mlr = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy();
Microsoft.ML.IntegrationTests (5)
Evaluation.cs (1)
154
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
IntrospectiveTraining.cs (1)
433
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
Training.cs (3)
270
var trainer = mlContext.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(
458
.Append(mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryClassificationTrainer));
489
.Append(mlContext.MulticlassClassification.
Trainers
.OneVersusAll(binaryClassificationTrainer))
Microsoft.ML.OnnxTransformerTest (1)
DnnImageFeaturizerTest.cs (1)
230
var trainer = ML.MulticlassClassification.
Trainers
.OneVersusAll(ML.BinaryClassification.Trainers.AveragedPerceptron(labelColumnName: "Label", numberOfIterations: 10, featureColumnName: "Features"), labelColumnName: "Label")
Microsoft.ML.PerformanceTests (5)
ImageClassificationBench.cs (1)
91
var pipeline = _mlContext.MulticlassClassification.
Trainers
.ImageClassification(options)
PredictionEngineBench.cs (1)
59
.Append(env.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
RffTransform.cs (1)
49
.Append(mlContext.MulticlassClassification.
Trainers
.OneVersusAll(mlContext.BinaryClassification.Trainers.AveragedPerceptron(numberOfIterations: 10)));
StochasticDualCoordinateAscentClassifierBench.cs (2)
80
.Append(_mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy());
118
var trainer = _mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy();
Microsoft.ML.Samples (19)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
66
var pipeline = mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
102
var pipeline = mlContext.MulticlassClassification.
Trainers
.
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
93
.Append(mlContext.MulticlassClassification.
Trainers
.
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
82
var pipeline = mlContext.MulticlassClassification.
Trainers
.
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
32
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
40
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
35
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
45
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
32
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
38
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
32
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
32
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
32
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
35
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
40
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
49
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
40
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
49
.Append(mlContext.MulticlassClassification.
Trainers
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
34
.Append(mlContext.MulticlassClassification.
Trainers
.
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
66
var pipeline = mlContext.MulticlassClassification.
Trainers
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
102
var pipeline = mlContext.MulticlassClassification.
Trainers
.
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
93
.Append(mlContext.MulticlassClassification.
Trainers
.
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
82
var pipeline = mlContext.MulticlassClassification.
Trainers
.
Microsoft.ML.TensorFlow.Tests (12)
TensorflowTests.cs (12)
155
.Append(_mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy());
671
.Append(_mlContext.MulticlassClassification.
Trainers
.LightGbm("Label", "Features"));
725
.Append(_mlContext.MulticlassClassification.
Trainers
.LightGbm("KeyLabel", "Features"));
841
.Append(_mlContext.MulticlassClassification.
Trainers
.LightGbm(new Trainers.LightGbm.LightGbmMulticlassTrainer.Options()
895
.Append(_mlContext.MulticlassClassification.
Trainers
.LightGbm("Label", "Features"));
1120
.Append(_mlContext.MulticlassClassification.
Trainers
.NaiveBayes("Label", "Output"));
1165
.Append(_mlContext.MulticlassClassification.
Trainers
.NaiveBayes());
1419
.Append(_mlContext.MulticlassClassification.
Trainers
.ImageClassification("Label", "Image")
1522
.Append(_mlContext.MulticlassClassification.
Trainers
.ImageClassification(options)
1680
.Append(_mlContext.MulticlassClassification.
Trainers
.ImageClassification(options))
1814
.Append(_mlContext.MulticlassClassification.
Trainers
.ImageClassification(options));
1885
var pipeline = _mlContext.MulticlassClassification.
Trainers
.ImageClassification(options);
Microsoft.ML.Tests (74)
DatabaseLoaderTests.cs (5)
70
.Append(mlContext.MulticlassClassification.
Trainers
.LightGbm())
106
.Append(mlContext.MulticlassClassification.
Trainers
.LightGbm())
142
.Append(mlContext.MulticlassClassification.
Trainers
.LightGbm())
174
.Append(mlContext.MulticlassClassification.
Trainers
.LightGbm())
206
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy())
OnnxConversionTest.cs (28)
631
Append(mlContext.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(new LbfgsMaximumEntropyMulticlassTrainer.Options() { NumberOfThreads = 1 }));
1651
mlContext.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(),
1652
mlContext.MulticlassClassification.
Trainers
.NaiveBayes(),
1653
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1655
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1657
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1659
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1661
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1663
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1665
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1667
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1669
mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(),
1670
mlContext.MulticlassClassification.
Trainers
.SdcaNonCalibrated()
1675
estimators.Add(mlContext.MulticlassClassification.
Trainers
.LightGbm());
1676
estimators.Add(mlContext.MulticlassClassification.
Trainers
.LightGbm(
1978
mlContext.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy("Label", "MyFeatureVector"),
1979
mlContext.MulticlassClassification.
Trainers
.NaiveBayes("Label", "MyFeatureVector"),
1980
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1982
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1984
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1986
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1988
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1990
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1992
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1994
mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
1996
mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy("Label", "MyFeatureVector"),
1997
mlContext.MulticlassClassification.
Trainers
.SdcaNonCalibrated("Label", "MyFeatureVector")
2002
estimators.Add(mlContext.MulticlassClassification.
Trainers
.LightGbm("Label", "MyFeatureVector"));
PermutationFeatureImportanceTests.cs (2)
525
var model = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy().Fit(data);
597
var model = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
236
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy());
652
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy());
Scenarios\Api\Estimators\DecomposableTrainAndPredict.cs (1)
35
.Append(ml.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
Scenarios\Api\Estimators\Extensibility.cs (1)
44
.Append(ml.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
Scenarios\Api\Estimators\PredictAndMetadata.cs (3)
33
.Append(ml.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
82
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
116
.Append(mlContext.MulticlassClassification.
Trainers
.OneVersusAll(singleTrainer));
Scenarios\IrisPlantClassificationTests.cs (1)
36
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (1)
40
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
Scenarios\OvaTest.cs (4)
37
var pipeline = mlContext.MulticlassClassification.
Trainers
.OneVersusAll(logReg, useProbabilities: false);
73
var pipeline = mlContext.MulticlassClassification.
Trainers
.OneVersusAll(ap, useProbabilities: false);
106
var pipeline = mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
140
var pipeline = mlContext.MulticlassClassification.
Trainers
.OneVersusAll(
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
34
.Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
TrainerEstimators\LbfgsTests.cs (3)
36
var trainer = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy();
166
var trainer = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy();
185
var trainer = ML.MulticlassClassification.
Trainers
.LbfgsMaximumEntropy(new LbfgsMaximumEntropyMulticlassTrainer.Options
TrainerEstimators\MetalinearEstimators.cs (4)
29
var ova = ML.MulticlassClassification.
Trainers
.OneVersusAll(averagePerceptron, imputeMissingLabelsAsNegative: true,
49
pipeline = pipeline.Append(ML.MulticlassClassification.
Trainers
.OneVersusAll(sdcaTrainer, useProbabilities: false))
67
pipeline = pipeline.Append(ML.MulticlassClassification.
Trainers
.PairwiseCoupling(sdcaTrainer))
99
.Append(ML.MulticlassClassification.
Trainers
.OneVersusAll(sdcaTrainer))
TrainerEstimators\SdcaTests.cs (6)
45
var mcTrainer = ML.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
49
var mcTrainerNonCalibrated = ML.MulticlassClassification.
Trainers
.SdcaNonCalibrated(
175
Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
179
Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(
278
Append(mlContext.MulticlassClassification.
Trainers
.SdcaMaximumEntropy(labelColumnName: "LabelIndex", featureColumnName: "Features", l2Regularization: 0.001f));
312
Append(mlContext.MulticlassClassification.
Trainers
.SdcaNonCalibrated(labelColumnName: "LabelIndex", featureColumnName: "Features", lossFunction: new HingeLoss(), l2Regularization: 0.001f));
TrainerEstimators\TrainerEstimators.cs (1)
155
pipe = pipe.Append(ML.MulticlassClassification.
Trainers
.NaiveBayes("Label", "Features"));
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
807
.Append(ML.MulticlassClassification.
Trainers
.SdcaMaximumEntropy("KeyLabel", "CombinedFeatures"));
TrainerEstimators\TreeEstimators.cs (10)
309
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(learningRate: 0.4);
326
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(fStream);
349
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(options);
365
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(new LightGbmMulticlassTrainer.Options
390
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(new LightGbmMulticlassTrainer.Options
409
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(new LightGbmMulticlassTrainer.Options
747
.Append(mlContext.MulticlassClassification.
Trainers
780
var trainer = ML.MulticlassClassification.
Trainers
.LightGbm(learningRate: 0.4);
1027
var estimator = pipeline.Append(context.MulticlassClassification.
Trainers
.OneVersusAll(context.BinaryClassification.Trainers.FastTree()));
1112
var trainer = pipeline.Append(context.MulticlassClassification.
Trainers
.LightGbm(
Microsoft.ML.TorchSharp.Tests (11)
NerTests.cs (3)
71
.Append(ML.MulticlassClassification.
Trainers
.NamedEntityRecognition(outputColumnName: "outputColumn"))
150
.Append(ML.MulticlassClassification.
Trainers
.NamedEntityRecognition(options))
224
.Append(ML.MulticlassClassification.
Trainers
.NamedEntityRecognition(options))
ObjectDetectionTests.cs (2)
51
.Append(ML.MulticlassClassification.
Trainers
.ObjectDetection("Labels", boundingBoxColumnName: "Box", maxEpoch: 1))
68
.Append(ML.MulticlassClassification.
Trainers
.ObjectDetection(options))
QATests.cs (2)
43
var estimator = chain.Append(ML.MulticlassClassification.
Trainers
.QuestionAnswer(maxEpochs: 1));
87
var estimator = ML.MulticlassClassification.
Trainers
.QuestionAnswer(maxEpochs: 30);
TextClassificationTests.cs (4)
99
.Append(ML.MulticlassClassification.
Trainers
.TextClassification(outputColumnName: "outputColumn"))
178
.Append(mlContext.MulticlassClassification.
Trainers
.TextClassification(sentence1ColumnName: "Title", sentence2ColumnName: "Description", maxEpochs: 10, batchSize: 8))
236
.Append(ML.MulticlassClassification.
Trainers
.TextClassification(outputColumnName: "outputColumn"))
320
var estimator = ML.MulticlassClassification.
Trainers
.TextClassification(outputColumnName: "outputColumn", sentence1ColumnName: "Sentence", sentence2ColumnName: "Sentence2", validationSet: preppedData)