1 write to Trainers
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
497Trainers = new MulticlassClassificationTrainers(this);
155 references to Trainers
Microsoft.ML.AutoML (23)
SweepableEstimator\Estimators\FastForest.cs (1)
23return context.MulticlassClassification.Trainers.OneVersusAll(context.BinaryClassification.Trainers.FastForest(option), labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\FastTree.cs (1)
28return context.MulticlassClassification.Trainers.OneVersusAll(context.BinaryClassification.Trainers.FastTree(option), labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\Images.cs (1)
54return context.MulticlassClassification.Trainers.ImageClassification(option);
SweepableEstimator\Estimators\Lbfgs.cs (2)
23return context.MulticlassClassification.Trainers.LbfgsMaximumEntropy(option); 78return context.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, param.LabelColumnName);
SweepableEstimator\Estimators\LightGbm.cs (1)
33return context.MulticlassClassification.Trainers.LightGbm(option);
SweepableEstimator\Estimators\NamedEntityRecognitionMulti.cs (1)
17return context.MulticlassClassification.Trainers.NamedEntityRecognition(
SweepableEstimator\Estimators\ObjectDetection.cs (1)
32return context.MulticlassClassification.Trainers.ObjectDetection(option);
SweepableEstimator\Estimators\QuestionAnswering.cs (1)
14return context.MulticlassClassification.Trainers.QuestionAnswer(
SweepableEstimator\Estimators\Sdca.cs (2)
41return context.MulticlassClassification.Trainers.SdcaMaximumEntropy(option); 78return context.MulticlassClassification.Trainers.OneVersusAll(binaryEstimator: binaryTrainer, labelColumnName: param.LabelColumnName);
SweepableEstimator\Estimators\TextClassification.cs (1)
17return context.MulticlassClassification.Trainers.TextClassification(
TrainerExtensions\MultiTrainerExtensions.cs (11)
29return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 51return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 71return mlContext.MulticlassClassification.Trainers.LightGbm(options); 94return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 114return mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy(options); 137return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 159return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 181return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 203return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.LabelColumnName); 224return mlContext.MulticlassClassification.Trainers.LbfgsMaximumEntropy(options); 242return mlContext.MulticlassClassification.Trainers.ImageClassification(options);
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
2014var 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)
270var 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)
230var trainer = ML.MulticlassClassification.Trainers.OneVersusAll(ML.BinaryClassification.Trainers.AveragedPerceptron(labelColumnName: "Label", numberOfIterations: 10, featureColumnName: "Features"), labelColumnName: "Label")
Microsoft.ML.PerformanceTests (5)
ImageClassificationBench.cs (1)
91var 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()); 118var trainer = _mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy();
Microsoft.ML.Samples (19)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
66var pipeline = mlContext.MulticlassClassification.Trainers
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
102var pipeline = mlContext.MulticlassClassification.Trainers.
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
93.Append(mlContext.MulticlassClassification.Trainers.
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
82var 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)
66var pipeline = mlContext.MulticlassClassification.Trainers
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
102var 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)
82var 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)); 1885var 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)
631Append(mlContext.MulticlassClassification.Trainers.LbfgsMaximumEntropy(new LbfgsMaximumEntropyMulticlassTrainer.Options() { NumberOfThreads = 1 })); 1651mlContext.MulticlassClassification.Trainers.LbfgsMaximumEntropy(), 1652mlContext.MulticlassClassification.Trainers.NaiveBayes(), 1653mlContext.MulticlassClassification.Trainers.OneVersusAll( 1655mlContext.MulticlassClassification.Trainers.OneVersusAll( 1657mlContext.MulticlassClassification.Trainers.OneVersusAll( 1659mlContext.MulticlassClassification.Trainers.OneVersusAll( 1661mlContext.MulticlassClassification.Trainers.OneVersusAll( 1663mlContext.MulticlassClassification.Trainers.OneVersusAll( 1665mlContext.MulticlassClassification.Trainers.OneVersusAll( 1667mlContext.MulticlassClassification.Trainers.OneVersusAll( 1669mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy(), 1670mlContext.MulticlassClassification.Trainers.SdcaNonCalibrated() 1675estimators.Add(mlContext.MulticlassClassification.Trainers.LightGbm()); 1676estimators.Add(mlContext.MulticlassClassification.Trainers.LightGbm( 1978mlContext.MulticlassClassification.Trainers.LbfgsMaximumEntropy("Label", "MyFeatureVector"), 1979mlContext.MulticlassClassification.Trainers.NaiveBayes("Label", "MyFeatureVector"), 1980mlContext.MulticlassClassification.Trainers.OneVersusAll( 1982mlContext.MulticlassClassification.Trainers.OneVersusAll( 1984mlContext.MulticlassClassification.Trainers.OneVersusAll( 1986mlContext.MulticlassClassification.Trainers.OneVersusAll( 1988mlContext.MulticlassClassification.Trainers.OneVersusAll( 1990mlContext.MulticlassClassification.Trainers.OneVersusAll( 1992mlContext.MulticlassClassification.Trainers.OneVersusAll( 1994mlContext.MulticlassClassification.Trainers.OneVersusAll( 1996mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy("Label", "MyFeatureVector"), 1997mlContext.MulticlassClassification.Trainers.SdcaNonCalibrated("Label", "MyFeatureVector") 2002estimators.Add(mlContext.MulticlassClassification.Trainers.LightGbm("Label", "MyFeatureVector"));
PermutationFeatureImportanceTests.cs (2)
525var model = ML.MulticlassClassification.Trainers.LbfgsMaximumEntropy().Fit(data); 597var 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)
37var pipeline = mlContext.MulticlassClassification.Trainers.OneVersusAll(logReg, useProbabilities: false); 73var pipeline = mlContext.MulticlassClassification.Trainers.OneVersusAll(ap, useProbabilities: false); 106var pipeline = mlContext.MulticlassClassification.Trainers.OneVersusAll( 140var pipeline = mlContext.MulticlassClassification.Trainers.OneVersusAll(
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (1)
34.Append(mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy(
TrainerEstimators\LbfgsTests.cs (3)
36var trainer = ML.MulticlassClassification.Trainers.LbfgsMaximumEntropy(); 166var trainer = ML.MulticlassClassification.Trainers.LbfgsMaximumEntropy(); 185var trainer = ML.MulticlassClassification.Trainers.LbfgsMaximumEntropy(new LbfgsMaximumEntropyMulticlassTrainer.Options
TrainerEstimators\MetalinearEstimators.cs (4)
29var ova = ML.MulticlassClassification.Trainers.OneVersusAll(averagePerceptron, imputeMissingLabelsAsNegative: true, 49pipeline = pipeline.Append(ML.MulticlassClassification.Trainers.OneVersusAll(sdcaTrainer, useProbabilities: false)) 67pipeline = pipeline.Append(ML.MulticlassClassification.Trainers.PairwiseCoupling(sdcaTrainer)) 99.Append(ML.MulticlassClassification.Trainers.OneVersusAll(sdcaTrainer))
TrainerEstimators\SdcaTests.cs (6)
45var mcTrainer = ML.MulticlassClassification.Trainers.SdcaMaximumEntropy( 49var mcTrainerNonCalibrated = ML.MulticlassClassification.Trainers.SdcaNonCalibrated( 175Append(mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy( 179Append(mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy( 278Append(mlContext.MulticlassClassification.Trainers.SdcaMaximumEntropy(labelColumnName: "LabelIndex", featureColumnName: "Features", l2Regularization: 0.001f)); 312Append(mlContext.MulticlassClassification.Trainers.SdcaNonCalibrated(labelColumnName: "LabelIndex", featureColumnName: "Features", lossFunction: new HingeLoss(), l2Regularization: 0.001f));
TrainerEstimators\TrainerEstimators.cs (1)
155pipe = pipe.Append(ML.MulticlassClassification.Trainers.NaiveBayes("Label", "Features"));
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
807.Append(ML.MulticlassClassification.Trainers.SdcaMaximumEntropy("KeyLabel", "CombinedFeatures"));
TrainerEstimators\TreeEstimators.cs (10)
309var trainer = ML.MulticlassClassification.Trainers.LightGbm(learningRate: 0.4); 326var trainer = ML.MulticlassClassification.Trainers.LightGbm(fStream); 349var trainer = ML.MulticlassClassification.Trainers.LightGbm(options); 365var trainer = ML.MulticlassClassification.Trainers.LightGbm(new LightGbmMulticlassTrainer.Options 390var trainer = ML.MulticlassClassification.Trainers.LightGbm(new LightGbmMulticlassTrainer.Options 409var trainer = ML.MulticlassClassification.Trainers.LightGbm(new LightGbmMulticlassTrainer.Options 747.Append(mlContext.MulticlassClassification.Trainers 780var trainer = ML.MulticlassClassification.Trainers.LightGbm(learningRate: 0.4); 1027var estimator = pipeline.Append(context.MulticlassClassification.Trainers.OneVersusAll(context.BinaryClassification.Trainers.FastTree())); 1112var 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)
43var estimator = chain.Append(ML.MulticlassClassification.Trainers.QuestionAnswer(maxEpochs: 1)); 87var 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")) 320var estimator = ML.MulticlassClassification.Trainers.TextClassification(outputColumnName: "outputColumn", sentence1ColumnName: "Sentence", sentence2ColumnName: "Sentence2", validationSet: preppedData)