1 write to MulticlassClassification
Microsoft.ML.Data (1)
MLContext.cs (1)
151
MulticlassClassification
= new MulticlassClassificationCatalog(_env);
229 references to MulticlassClassification
Microsoft.ML.AutoML (27)
API\MulticlassClassificationExperiment.cs (2)
373
var metrics = _context.
MulticlassClassification
.CrossValidate(datasetManager.Dataset, pipeline, fold, metricManager.LabelColumn);
403
var metrics = _context.
MulticlassClassification
.Evaluate(eval, metricManager.LabelColumn, predictedLabelColumnName: metricManager.PredictedColumn);
AutoMLExperiment\IMetricManager.cs (1)
95
var metric = context.
MulticlassClassification
.Evaluate(eval, labelColumnName: LabelColumn, predictedLabelColumnName: PredictedColumn);
Experiment\MetricsAgents\MultiMetricsAgent.cs (1)
71
return _mlContext.
MulticlassClassification
.Evaluate(data, labelColumn);
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.AutoML.Samples (1)
AutoFit\MulticlassClassificationExperiment.cs (1)
40
MulticlassClassificationMetrics testMetrics = mlContext.
MulticlassClassification
.Evaluate(testDataViewWithBestScore, labelColumnName: LabelColumnName);
Microsoft.ML.AutoML.Tests (1)
Utils\TaskAgnosticAutoFit.cs (1)
143
var classificationMetrics = _context.
MulticlassClassification
.Evaluate(result.ScoredTestData, labelColumnName: label);
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
2014
var mlr = ML.
MulticlassClassification
.Trainers.LbfgsMaximumEntropy();
Microsoft.ML.IntegrationTests (8)
Evaluation.cs (2)
154
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
162
var metrics = mlContext.
MulticlassClassification
.Evaluate(scoredData);
IntrospectiveTraining.cs (1)
433
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
Training.cs (5)
270
var trainer = mlContext.
MulticlassClassification
.Trainers.LbfgsMaximumEntropy(
458
.Append(mlContext.
MulticlassClassification
.Trainers.OneVersusAll(binaryClassificationTrainer));
467
var binaryClassificationMetrics = mlContext.
MulticlassClassification
.Evaluate(binaryClassificationPredictions);
489
.Append(mlContext.
MulticlassClassification
.Trainers.OneVersusAll(binaryClassificationTrainer))
499
var binaryClassificationMetrics = mlContext.
MulticlassClassification
.Evaluate(binaryClassificationPredictions);
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 (6)
ImageClassificationBench.cs (1)
91
var pipeline = _mlContext.
MulticlassClassification
.Trainers.ImageClassification(options)
PredictionEngineBench.cs (1)
59
.Append(env.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
RffTransform.cs (2)
49
.Append(mlContext.
MulticlassClassification
.Trainers.OneVersusAll(mlContext.BinaryClassification.Trainers.AveragedPerceptron(numberOfIterations: 10)));
51
var cvResults = mlContext.
MulticlassClassification
.CrossValidate(data, pipeline, numberOfFolds: 5);
StochasticDualCoordinateAscentClassifierBench.cs (2)
80
.Append(_mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy());
118
var trainer = _mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy();
Microsoft.ML.Samples (37)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (2)
66
var pipeline = mlContext.
MulticlassClassification
.Trainers
160
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
102
var pipeline = mlContext.
MulticlassClassification
.Trainers.
186
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
93
.Append(mlContext.
MulticlassClassification
.Trainers.
184
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
82
var pipeline = mlContext.
MulticlassClassification
.Trainers.
169
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (2)
32
.Append(mlContext.
MulticlassClassification
.Trainers
64
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (2)
40
.Append(mlContext.
MulticlassClassification
.Trainers
72
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (2)
35
.Append(mlContext.
MulticlassClassification
.Trainers
67
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (2)
45
.Append(mlContext.
MulticlassClassification
.Trainers
77
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (2)
32
.Append(mlContext.
MulticlassClassification
.Trainers
47
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (2)
38
.Append(mlContext.
MulticlassClassification
.Trainers
70
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (2)
32
.Append(mlContext.
MulticlassClassification
.Trainers
65
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (2)
32
.Append(mlContext.
MulticlassClassification
.Trainers
65
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (2)
32
.Append(mlContext.
MulticlassClassification
.Trainers
46
var permutationMetrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
35
.Append(mlContext.
MulticlassClassification
.Trainers
54
var permutationMetrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (2)
40
.Append(mlContext.
MulticlassClassification
.Trainers
72
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (2)
49
.Append(mlContext.
MulticlassClassification
.Trainers
81
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (2)
40
.Append(mlContext.
MulticlassClassification
.Trainers
72
var metrics = mlContext.
MulticlassClassification
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (2)
49
.Append(mlContext.
MulticlassClassification
.Trainers
81
var metrics = mlContext.
MulticlassClassification
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
34
.Append(mlContext.
MulticlassClassification
.Trainers.
Microsoft.ML.Samples.GPU (8)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (2)
66
var pipeline = mlContext.
MulticlassClassification
.Trainers
160
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
102
var pipeline = mlContext.
MulticlassClassification
.Trainers.
186
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
93
.Append(mlContext.
MulticlassClassification
.Trainers.
184
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
82
var pipeline = mlContext.
MulticlassClassification
.Trainers.
169
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
Microsoft.ML.TensorFlow.Tests (24)
TensorflowTests.cs (24)
155
.Append(_mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy());
161
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
671
.Append(_mlContext.
MulticlassClassification
.Trainers.LightGbm("Label", "Features"));
675
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predicted);
725
.Append(_mlContext.
MulticlassClassification
.Trainers.LightGbm("KeyLabel", "Features"));
729
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predicted, labelColumnName: "KeyLabel");
841
.Append(_mlContext.
MulticlassClassification
.Trainers.LightGbm(new Trainers.LightGbm.LightGbmMulticlassTrainer.Options()
851
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predicted);
895
.Append(_mlContext.
MulticlassClassification
.Trainers.LightGbm("Label", "Features"));
899
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predicted);
1120
.Append(_mlContext.
MulticlassClassification
.Trainers.NaiveBayes("Label", "Output"));
1122
var cross = _mlContext.
MulticlassClassification
.CrossValidate(dataView, pipeline, 2);
1165
.Append(_mlContext.
MulticlassClassification
.Trainers.NaiveBayes());
1172
var metrics = _mlContext.
MulticlassClassification
.Evaluate(transformedData);
1419
.Append(_mlContext.
MulticlassClassification
.Trainers.ImageClassification("Label", "Image")
1434
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
1522
.Append(_mlContext.
MulticlassClassification
.Trainers.ImageClassification(options)
1537
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
1680
.Append(_mlContext.
MulticlassClassification
.Trainers.ImageClassification(options))
1696
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
1814
.Append(_mlContext.
MulticlassClassification
.Trainers.ImageClassification(options));
1826
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
1885
var pipeline = _mlContext.
MulticlassClassification
.Trainers.ImageClassification(options);
1897
var metrics = _mlContext.
MulticlassClassification
.Evaluate(predictions);
Microsoft.ML.Tests (101)
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())
EvaluateTests.cs (2)
48
var metrics = mlContext.
MulticlassClassification
.Evaluate(inputDV, topKPredictionCount: 4);
65
var metrics2 = mlContext.
MulticlassClassification
.Evaluate(inputDV2, topKPredictionCount: 4);
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 (10)
525
var model = ML.
MulticlassClassification
.Trainers.LbfgsMaximumEntropy().Fit(data);
542
pfi = ML.
MulticlassClassification
.PermutationFeatureImportance(castedModel, data);
543
pfiDict = ml2.
MulticlassClassification
.PermutationFeatureImportance(loadedModel, data);
551
pfi = ML.
MulticlassClassification
.PermutationFeatureImportance(model, data);
552
pfiDict = ml2.
MulticlassClassification
.PermutationFeatureImportance((ITransformer)model, data);
597
var model = ML.
MulticlassClassification
.Trainers.LbfgsMaximumEntropy(
615
pfi = ML.
MulticlassClassification
.PermutationFeatureImportance(castedModel, data);
616
pfiDict = ml2.
MulticlassClassification
.PermutationFeatureImportance(loadedModel, data);
624
pfi = ML.
MulticlassClassification
.PermutationFeatureImportance(model, data);
625
pfiDict = ml2.
MulticlassClassification
.PermutationFeatureImportance((ITransformer)model, data);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (4)
236
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy());
652
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy());
660
var metrics = mlContext.
MulticlassClassification
.Evaluate(model.Transform(split.TestSet, TransformerScope.Everything));
664
var cvResults = mlContext.
MulticlassClassification
.CrossValidate(data, pipeline, numberOfFolds: 5);
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 (5)
33
.Append(ml.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
82
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
89
var metrics = mlContext.
MulticlassClassification
.Evaluate(scoredData);
116
.Append(mlContext.
MulticlassClassification
.Trainers.OneVersusAll(singleTrainer));
123
var metrics2 = mlContext.
MulticlassClassification
.Evaluate(scoredData2);
Scenarios\IrisPlantClassificationTests.cs (2)
36
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
88
var metrics = mlContext.
MulticlassClassification
.Evaluate(predicted, topKPredictionCount: 3);
Scenarios\IrisPlantClassificationWithStringLabelTests.cs (2)
40
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
90
var metrics = mlContext.
MulticlassClassification
.Evaluate(predicted, topKPredictionCount: 3);
Scenarios\OvaTest.cs (8)
37
var pipeline = mlContext.
MulticlassClassification
.Trainers.OneVersusAll(logReg, useProbabilities: false);
43
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
73
var pipeline = mlContext.
MulticlassClassification
.Trainers.OneVersusAll(ap, useProbabilities: false);
79
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
106
var pipeline = mlContext.
MulticlassClassification
.Trainers.OneVersusAll(
114
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
140
var pipeline = mlContext.
MulticlassClassification
.Trainers.OneVersusAll(
148
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictions);
ScenariosWithDirectInstantiation\IrisPlantClassificationTests.cs (2)
34
.Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(
48
var metrics = mlContext.
MulticlassClassification
.Evaluate(predicted);
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 (10)
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(
189
var metrics1 = mlContext.
MulticlassClassification
.Evaluate(prediction1, labelColumnName: "LabelIndex", topKPredictionCount: 1);
190
var metrics2 = mlContext.
MulticlassClassification
.Evaluate(prediction2, labelColumnName: "LabelIndex", topKPredictionCount: 1);
278
Append(mlContext.
MulticlassClassification
.Trainers.SdcaMaximumEntropy(labelColumnName: "LabelIndex", featureColumnName: "Features", l2Regularization: 0.001f));
285
var metrics = mlContext.
MulticlassClassification
.Evaluate(prediction, labelColumnName: "LabelIndex", topKPredictionCount: 1);
312
Append(mlContext.
MulticlassClassification
.Trainers.SdcaNonCalibrated(labelColumnName: "LabelIndex", featureColumnName: "Features", lossFunction: new HingeLoss(), l2Regularization: 0.001f));
319
var metrics = mlContext.
MulticlassClassification
.Evaluate(prediction, labelColumnName: "LabelIndex", topKPredictionCount: 1);
TrainerEstimators\TrainerEstimators.cs (1)
155
pipe = pipe.Append(ML.
MulticlassClassification
.Trainers.NaiveBayes("Label", "Features"));
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (2)
807
.Append(ML.
MulticlassClassification
.Trainers.SdcaMaximumEntropy("KeyLabel", "CombinedFeatures"));
811
var metrics = ML.
MulticlassClassification
.Evaluate(prediction, labelColumnName: "KeyLabel");
TrainerEstimators\TreeEstimators.cs (11)
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);
784
var metrics = ML.
MulticlassClassification
.Evaluate(model.Transform(dataView));
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 (14)
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 (3)
51
.Append(ML.
MulticlassClassification
.Trainers.ObjectDetection("Labels", boundingBoxColumnName: "Box", maxEpoch: 1))
68
.Append(ML.
MulticlassClassification
.Trainers.ObjectDetection(options))
84
var metrics = ML.
MulticlassClassification
.EvaluateObjectDetection(idv, idv.Schema[2], idv.Schema["Box"], idv.Schema["PredictedLabel"], idv.Schema["PredictedBoundingBoxes"], idv.Schema["Score"]);
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 (6)
99
.Append(ML.
MulticlassClassification
.Trainers.TextClassification(outputColumnName: "outputColumn"))
156
var metrics = ML.
MulticlassClassification
.Evaluate(transformer.Transform(dataView, TransformerScope.Everything), predictedLabelColumnName: "outputColumn");
178
.Append(mlContext.
MulticlassClassification
.Trainers.TextClassification(sentence1ColumnName: "Title", sentence2ColumnName: "Description", maxEpochs: 10, batchSize: 8))
182
var metrics = mlContext.
MulticlassClassification
.Evaluate(predictionIdv);
236
.Append(ML.
MulticlassClassification
.Trainers.TextClassification(outputColumnName: "outputColumn"))
320
var estimator = ML.
MulticlassClassification
.Trainers.TextClassification(outputColumnName: "outputColumn", sentence1ColumnName: "Sentence", sentence2ColumnName: "Sentence2", validationSet: preppedData)