1 write to BinaryClassification
Microsoft.ML.Data (1)
MLContext.cs (1)
150
BinaryClassification
= new BinaryClassificationCatalog(_env);
322 references to BinaryClassification
Microsoft.ML.AutoML (23)
API\BinaryClassificationExperiment.cs (2)
395
var metrics = _context.
BinaryClassification
.CrossValidateNonCalibrated(datasetManager.Dataset, pipeline, fold, metricManager.LabelColumn);
425
var metrics = _context.
BinaryClassification
.EvaluateNonCalibrated(eval, metricManager.LabelColumn, predictedLabelColumnName: metricManager.PredictedColumn);
AutoMLExperiment\IMetricManager.cs (1)
56
var metric = context.
BinaryClassification
.EvaluateNonCalibrated(eval, labelColumnName: LabelColumn, predictedLabelColumnName: PredictedColumn);
Experiment\MetricsAgents\BinaryMetricsAgent.cs (1)
83
return _mlContext.
BinaryClassification
.EvaluateNonCalibrated(data, labelColumn);
SweepableEstimator\Estimators\Calibrators.cs (1)
11
return context.
BinaryClassification
.Calibrators.Naive(param.LabelColumnName, param.ScoreColumnName);
SweepableEstimator\Estimators\FastForest.cs (2)
23
return context.MulticlassClassification.Trainers.OneVersusAll(context.
BinaryClassification
.Trainers.FastForest(option), labelColumnName: param.LabelColumnName);
60
return context.
BinaryClassification
.Trainers.FastForest(option);
SweepableEstimator\Estimators\FastTree.cs (2)
28
return context.MulticlassClassification.Trainers.OneVersusAll(context.
BinaryClassification
.Trainers.FastTree(option), labelColumnName: param.LabelColumnName);
97
return context.
BinaryClassification
.Trainers.FastTree(option);
SweepableEstimator\Estimators\Lbfgs.cs (2)
59
return context.
BinaryClassification
.Trainers.LbfgsLogisticRegression(option);
77
var binaryTrainer = context.
BinaryClassification
.Trainers.LbfgsLogisticRegression(option);
SweepableEstimator\Estimators\LightGbm.cs (1)
61
return context.
BinaryClassification
.Trainers.LightGbm(option);
SweepableEstimator\Estimators\Sdca.cs (2)
59
return context.
BinaryClassification
.Trainers.SdcaLogisticRegression(option);
77
var binaryTrainer = context.
BinaryClassification
.Trainers.SdcaLogisticRegression(option);
TrainerExtensions\BinaryTrainerExtensions.cs (9)
44
return mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(options);
76
return mlContext.
BinaryClassification
.Trainers.FastForest(options);
98
return mlContext.
BinaryClassification
.Trainers.FastTree(options);
119
return mlContext.
BinaryClassification
.Trainers.LightGbm(options);
140
return mlContext.
BinaryClassification
.Trainers.LinearSvm(options);
161
return mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(options);
183
return mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(options);
205
return mlContext.
BinaryClassification
.Trainers.SgdCalibrated(options);
226
return mlContext.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression(options);
Microsoft.ML.AutoML.Samples (4)
AutoFit\BinaryClassificationExperiment.cs (1)
39
BinaryClassificationMetrics testMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(testDataViewWithBestScore);
AutoMLExperiment.cs (1)
61
var metrics = context.
BinaryClassification
.Evaluate(eval);
Sweepable\SweepableLightGBMBinaryExperiment.cs (2)
47
return _context.
BinaryClassification
.Trainers.LightGbm(
88
var metrics = context.
BinaryClassification
.Evaluate(eval);
Microsoft.ML.AutoML.Tests (2)
AutoMLExperimentTests.cs (1)
106
.Append(context.
BinaryClassification
.Trainers.LightGbm(DatasetUtil.UciAdultLabel, "_Features_", numberOfIterations: 10000));
GetNextPipelineTests.cs (1)
42
var score = context.
BinaryClassification
.EvaluateNonCalibrated(scoredData).Accuracy;
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
1375
.Append(mlContext.
BinaryClassification
.Trainers.AveragedPerceptron());
Microsoft.ML.Fairlearn (3)
Metrics\FairlearnMetricCatalog.cs (2)
96
var groupMetric = res.Select(kv => (kv.Key, _context.
BinaryClassification
.EvaluateNonCalibrated(kv.Value)))
115
CalibratedBinaryClassificationMetrics metrics = _context.
BinaryClassification
.Evaluate(_eval, _labelColumn);
Reductions\GridSearchTrialRunner.cs (1)
89
var metrics = _context.
BinaryClassification
.EvaluateNonCalibrated(eval, this._labelColumn);
Microsoft.ML.IntegrationTests (31)
DataTransformation.cs (2)
145
.Append(mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(
153
var metrics = mlContext.
BinaryClassification
.Evaluate(scoredData);
Evaluation.cs (6)
67
.Append(mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated(
75
var metrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(scoredData);
96
.Append(mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
104
var metrics = mlContext.
BinaryClassification
.Evaluate(scoredData);
302
.Append(mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
310
var metrics = mlContext.
BinaryClassification
.Evaluate(scoredData);
IntrospectiveTraining.cs (2)
83
.Append(mlContext.
BinaryClassification
.Trainers.FastTree(
227
.Append(mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated(
ModelFiles.cs (3)
139
var pipeline = mlContext.
BinaryClassification
.Trainers.Gam();
141
var pipeline1 = loader.Append(mlContext.
BinaryClassification
.Trainers.Gam());
272
var pipeline = mlContext.
BinaryClassification
.Trainers.Gam();
Prediction.cs (5)
52
.Append(mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
68
transformers.Add(mlContext.
BinaryClassification
.ChangeModelThreshold(model.LastTransformer, 0.7f));
83
var pipeline = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
86
var newModel = mlContext.
BinaryClassification
.ChangeModelThreshold(model, -2.0f);
106
var pipeline = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
Training.cs (13)
45
var sdcaTrainer = mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(
48
var fastTreeTrainer = mlContext.
BinaryClassification
.Trainers.FastTree(
51
var ffmTrainer = mlContext.
BinaryClassification
.Trainers.FieldAwareFactorizationMachine();
65
var sdcaMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(sdcaPredictions);
67
var fastTreeMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(fastTreePredictions);
69
var ffmMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(ffmPredictions);
95
var trainer = mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(
139
var trainer = mlContext.
BinaryClassification
.Trainers.FieldAwareFactorizationMachine(
183
var trainer = mlContext.
BinaryClassification
.Trainers.LinearSvm(
227
var trainer = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
409
var trainer = mlContext.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression(
453
var binaryClassificationTrainer = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
484
var binaryClassificationTrainer = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
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)
KMeansAndLogisticRegressionBench.cs (1)
41
.Append(ml.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
PredictionEngineBench.cs (2)
94
.Append(mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated(
128
var pipeline = env.
BinaryClassification
.Trainers.SdcaNonCalibrated(
RffTransform.cs (1)
49
.Append(mlContext.MulticlassClassification.Trainers.OneVersusAll(mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(numberOfIterations: 10)));
TextPredictionEngineCreation.cs (1)
30
.Append(_context.
BinaryClassification
.Trainers.SdcaNonCalibrated(
Microsoft.ML.Predictor.Tests (2)
TestIniModels.cs (2)
570
.Append(mlContext.
BinaryClassification
.Trainers.Gam());
586
var results = mlContext.
BinaryClassification
.Evaluate(data);
Microsoft.ML.Samples (78)
Dynamic\ModelOperations\OnnxConversion.cs (1)
64
.Append(mlContext.
BinaryClassification
.Trainers.AveragedPerceptron());
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (2)
38
var pipeline = mlContext.
BinaryClassification
.Trainers
70
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (2)
28
var pipeline = mlContext.
BinaryClassification
.Trainers
53
var calibratorEstimator = mlContext.
BinaryClassification
.Calibrators
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (2)
28
var pipeline = mlContext.
BinaryClassification
.Trainers
53
var calibratorEstimator = mlContext.
BinaryClassification
.Calibrators
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (2)
28
var pipeline = mlContext.
BinaryClassification
.Trainers
53
var calibratorEstimator = mlContext.
BinaryClassification
.Calibrators
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (2)
28
var pipeline = mlContext.
BinaryClassification
.Trainers
53
var calibratorEstimator = mlContext.
BinaryClassification
.Calibrators
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (2)
35
var pipeline = mlContext.
BinaryClassification
.Trainers
67
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FastForest.cs (2)
30
var pipeline = mlContext.
BinaryClassification
.Trainers
62
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (2)
42
var pipeline = mlContext.
BinaryClassification
.Trainers
74
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FastTree.cs (2)
30
var pipeline = mlContext.
BinaryClassification
.Trainers
62
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (2)
42
var pipeline = mlContext.
BinaryClassification
.Trainers
74
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (2)
36
var pipeline = mlContext.
BinaryClassification
.Trainers
51
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (2)
52
var pipeline = mlContext.
BinaryClassification
.Trainers
62
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
39
var trainer = mlContext.
BinaryClassification
.Trainers
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
42
var trainer = mlContext.
BinaryClassification
.Trainers.Gam(
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (2)
36
var pipeline = mlContext.
BinaryClassification
.Trainers
68
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LdSvm.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (2)
36
var pipeline = mlContext.
BinaryClassification
.Trainers
68
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LightGbm.cs (2)
30
var pipeline = mlContext.
BinaryClassification
.Trainers
62
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (2)
41
var pipeline = mlContext.
BinaryClassification
.Trainers
73
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (2)
36
var pipeline = mlContext.
BinaryClassification
.Trainers
68
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (2)
30
.Append(mlContext.
BinaryClassification
.Trainers
44
var permutationMetrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
26
.Append(mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression()
44
var permutationMetrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (2)
35
var pipeline = mlContext.
BinaryClassification
.Trainers
67
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (2)
47
var pipeline = mlContext.
BinaryClassification
.Trainers
79
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (2)
35
var pipeline = mlContext.
BinaryClassification
.Trainers
67
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (2)
49
var pipeline = mlContext.
BinaryClassification
.Trainers
81
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (2)
39
var pipeline = mlContext.
BinaryClassification
.Trainers
71
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (2)
27
var pipeline = mlContext.
BinaryClassification
.Trainers
59
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (2)
36
var pipeline = mlContext.
BinaryClassification
.Trainers
68
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (2)
30
var pipeline = mlContext.
BinaryClassification
.Trainers
62
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (2)
39
var pipeline = mlContext.
BinaryClassification
.Trainers
71
var metrics = mlContext.
BinaryClassification
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
34
mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression()));
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
34
mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression()));
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
39
var trainer = mlContext.
BinaryClassification
.Trainers.Gam(
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
42
var trainer = mlContext.
BinaryClassification
.Trainers.Gam(
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
36
var linearTrainer = mlContext.
BinaryClassification
.Trainers
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
38
var trainer = mlContext.
BinaryClassification
.Trainers.FastTree(
Dynamic\WithOnFitDelegate.cs (1)
48
.Append(mlContext.
BinaryClassification
.Trainers
Microsoft.ML.Samples.OneDal (3)
Program.cs (3)
79
var trainer = mlContext.
BinaryClassification
.Trainers.FastForest(options);
84
var trainingMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(trainingPredictions, labelColumnName: labelName);
86
var testingMetrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(testingPredictions, labelColumnName: labelName);
Microsoft.ML.Tests (169)
CalibratedModelParametersTests.cs (3)
27
var model = ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
49
var model = ML.
BinaryClassification
.Trainers.Gam(
72
var model = ML.
BinaryClassification
.Trainers.FastTree(
FeatureContributionTests.cs (10)
123
TestFeatureContribution(ML.
BinaryClassification
.Trainers.AveragedPerceptron(), GetSparseDataset(TaskType.BinaryClassification, 100), "AveragePerceptronBinary");
129
TestFeatureContribution(ML.
BinaryClassification
.Trainers.LinearSvm(), GetSparseDataset(TaskType.BinaryClassification, 100), "SVMBinary");
135
TestFeatureContribution(ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(), GetSparseDataset(TaskType.BinaryClassification, 100), "LogisticRegressionBinary", 3);
141
TestFeatureContribution(ML.
BinaryClassification
.Trainers.FastForest(), GetSparseDataset(TaskType.BinaryClassification, 100), "FastForestBinary");
147
TestFeatureContribution(ML.
BinaryClassification
.Trainers.FastTree(), GetSparseDataset(TaskType.BinaryClassification, 100), "FastTreeBinary");
153
TestFeatureContribution(ML.
BinaryClassification
.Trainers.LightGbm(), GetSparseDataset(TaskType.BinaryClassification, 100), "LightGbmBinary");
159
TestFeatureContribution(ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(
166
TestFeatureContribution(ML.
BinaryClassification
.Trainers.SgdCalibrated(
177
TestFeatureContribution(ML.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression(
188
TestFeatureContribution(ML.
BinaryClassification
.Trainers.Gam(), GetSparseDataset(TaskType.BinaryClassification, 100), "GAMBinary");
OnnxConversionTest.cs (59)
225
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(),
226
mlContext.
BinaryClassification
.Trainers.FastForest(),
227
mlContext.
BinaryClassification
.Trainers.FastTree(),
228
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(),
229
mlContext.
BinaryClassification
.Trainers.LinearSvm(),
230
mlContext.
BinaryClassification
.Trainers.Prior(),
231
mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(),
232
mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated(),
233
mlContext.
BinaryClassification
.Trainers.SgdCalibrated(),
234
mlContext.
BinaryClassification
.Trainers.SgdNonCalibrated(),
238
estimators.Add(mlContext.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression());
242
estimators.Add(mlContext.
BinaryClassification
.Trainers.LightGbm());
283
ML.
BinaryClassification
.Trainers.AveragedPerceptron(),
284
ML.
BinaryClassification
.Trainers.FastForest(),
285
ML.
BinaryClassification
.Trainers.FastTree(),
286
ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(),
287
ML.
BinaryClassification
.Trainers.LinearSvm(),
288
ML.
BinaryClassification
.Trainers.Prior(),
289
ML.
BinaryClassification
.Trainers.SdcaLogisticRegression(),
290
ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(),
291
ML.
BinaryClassification
.Trainers.SgdCalibrated(),
292
ML.
BinaryClassification
.Trainers.SgdNonCalibrated(),
293
ML.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression(),
297
estimators.Add(ML.
BinaryClassification
.Trainers.LightGbm());
334
CommonCalibratorOnnxConversionTest(ML.
BinaryClassification
.Calibrators.Platt(),
335
ML.
BinaryClassification
.Calibrators.Platt(scoreColumnName: "ScoreX"));
342
CommonCalibratorOnnxConversionTest(ML.
BinaryClassification
.Calibrators.Platt(slope: -1f, offset: -0.05f),
343
ML.
BinaryClassification
.Calibrators.Platt(slope: -1f, offset: -0.05f, scoreColumnName: "ScoreX"));
349
CommonCalibratorOnnxConversionTest(ML.
BinaryClassification
.Calibrators.Naive(),
350
ML.
BinaryClassification
.Calibrators.Naive(scoreColumnName: "ScoreX"));
796
.Append(mlContext.
BinaryClassification
.Trainers.FastTree(labelColumnName: "Label", featureColumnName: "Features", numberOfLeaves: 2, numberOfTrees: 1, minimumExampleCountPerLeaf: 2));
1654
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron()),
1656
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(), useProbabilities:false),
1658
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression()),
1660
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression(), useProbabilities:false),
1662
mlContext.
BinaryClassification
.Trainers.LinearSvm()),
1664
mlContext.
BinaryClassification
.Trainers.LinearSvm(), useProbabilities:false),
1666
mlContext.
BinaryClassification
.Trainers.FastForest()),
1668
mlContext.
BinaryClassification
.Trainers.FastForest(), useProbabilities:false),
1936
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron("Label", "MyFeatureVector"),
1937
mlContext.
BinaryClassification
.Trainers.FastForest("Label", "MyFeatureVector"),
1938
mlContext.
BinaryClassification
.Trainers.FastTree("Label", "MyFeatureVector"),
1939
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression("Label", "MyFeatureVector"),
1940
mlContext.
BinaryClassification
.Trainers.LinearSvm("Label", "MyFeatureVector"),
1941
mlContext.
BinaryClassification
.Trainers.Prior(),
1942
mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "MyFeatureVector"),
1943
mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated("Label", "MyFeatureVector"),
1944
mlContext.
BinaryClassification
.Trainers.SgdCalibrated("Label", "MyFeatureVector"),
1945
mlContext.
BinaryClassification
.Trainers.SgdNonCalibrated("Label", "MyFeatureVector"),
1949
estimators.Add(mlContext.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression("Label", "MyFeatureVector"));
1953
estimators.Add(mlContext.
BinaryClassification
.Trainers.LightGbm("Label", "MyFeatureVector"));
1981
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron("Label", "MyFeatureVector")),
1983
mlContext.
BinaryClassification
.Trainers.AveragedPerceptron("Label", "MyFeatureVector"), useProbabilities:false),
1985
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression("Label", "MyFeatureVector")),
1987
mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression("Label", "MyFeatureVector"), useProbabilities:false),
1989
mlContext.
BinaryClassification
.Trainers.LinearSvm("Label", "MyFeatureVector")),
1991
mlContext.
BinaryClassification
.Trainers.LinearSvm("Label", "MyFeatureVector"), useProbabilities:false),
1993
mlContext.
BinaryClassification
.Trainers.FastForest("Label", "MyFeatureVector")),
1995
mlContext.
BinaryClassification
.Trainers.FastForest("Label", "MyFeatureVector"), useProbabilities:false),
PermutationFeatureImportanceTests.cs (12)
342
var model = ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
360
pfi = ML.
BinaryClassification
.PermutationFeatureImportance(castedModel, data);
361
pfiDict = ml2.
BinaryClassification
.PermutationFeatureImportanceNonCalibrated(loadedModel, data);
369
pfi = ML.
BinaryClassification
.PermutationFeatureImportance(model, data);
370
pfiDict = ml2.
BinaryClassification
.PermutationFeatureImportanceNonCalibrated((ITransformer)model, data);
416
var model = ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
434
pfi = ML.
BinaryClassification
.PermutationFeatureImportance(castedModel, data);
435
pfiDict = ml2.
BinaryClassification
.PermutationFeatureImportanceNonCalibrated(loadedModel, data);
443
pfi = ML.
BinaryClassification
.PermutationFeatureImportance(model, data);
444
pfiDict = ml2.
BinaryClassification
.PermutationFeatureImportanceNonCalibrated((ITransformer)model, data);
488
var ff = ML.
BinaryClassification
.Trainers.FastForest();
493
var pfi = ML.
BinaryClassification
.PermutationFeatureImportance(model, data);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (4)
106
.Append(mlContext.
BinaryClassification
.Trainers
619
.Append(mlContext.
BinaryClassification
.Trainers.FastTree(numberOfTrees: 50));
742
.Append(mlContext.
BinaryClassification
.Trainers.FastTree(labelColumnName: "Label"));
781
.Append(mlContext.
BinaryClassification
.Trainers.FastTree(labelColumnName: "Label"));
Scenarios\Api\Estimators\MultithreadedPrediction.cs (1)
33
.Append(ml.
BinaryClassification
.Trainers.SdcaNonCalibrated(
Scenarios\Api\Estimators\PredictAndMetadata.cs (1)
112
var singleTrainer = mlContext.
BinaryClassification
.Trainers.FastTree();
Scenarios\Api\Estimators\SimpleTrainAndPredict.cs (2)
31
.Append(ml.
BinaryClassification
.Trainers.SdcaNonCalibrated(
68
.Append(ml.
BinaryClassification
.Trainers.SymbolicSgdLogisticRegression(new SymbolicSgdLogisticRegressionBinaryTrainer.Options
Scenarios\Api\Estimators\TrainWithInitialPredictor.cs (2)
35
var trainer = ml.
BinaryClassification
.Trainers.SdcaNonCalibrated(
41
var secondTrainer = ml.
BinaryClassification
.Trainers.AveragedPerceptron("Label", "Features");
Scenarios\Api\TestApi.cs (1)
185
var estimator = mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(
Scenarios\OvaTest.cs (4)
36
var logReg = mlContext.
BinaryClassification
.Trainers.LbfgsLogisticRegression();
70
var ap = mlContext.
BinaryClassification
.Trainers.AveragedPerceptron(
107
mlContext.
BinaryClassification
.Trainers.FastTree(new FastTreeBinaryTrainer.Options { NumberOfThreads = 1 }),
141
mlContext.
BinaryClassification
.Trainers.LinearSvm(new LinearSvmTrainer.Options { NumberOfIterations = 100 }),
TrainerEstimators\CalibratorEstimators.cs (1)
100
var binaryTrainer = ML.
BinaryClassification
.Trainers.AveragedPerceptron();
TrainerEstimators\FAFMEstimator.cs (5)
26
.Append(mlContext.
BinaryClassification
.Trainers.FieldAwareFactorizationMachine());
31
var metrics = mlContext.
BinaryClassification
.Evaluate(prediction);
52
var pipeline = mlContext.
BinaryClassification
.Trainers.FieldAwareFactorizationMachine(ffmArgs);
57
var metrics = mlContext.
BinaryClassification
.Evaluate(prediction);
80
var est = ML.
BinaryClassification
.Trainers.FieldAwareFactorizationMachine(ffmArgs);
TrainerEstimators\LbfgsTests.cs (3)
22
var trainer = ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression();
63
pipe = pipe.Append(ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(new LbfgsLogisticRegressionBinaryTrainer.Options { ShowTrainingStatistics = true }));
83
pipe = pipe.Append(ML.
BinaryClassification
.Trainers.LbfgsLogisticRegression(
TrainerEstimators\MetalinearEstimators.cs (4)
26
var averagePerceptron = ML.
BinaryClassification
.Trainers.AveragedPerceptron(
46
var sdcaTrainer = ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(
64
var sdcaTrainer = ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(
87
var sdcaTrainer = ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(
TrainerEstimators\OneDalEstimators.cs (3)
72
var trainer = ML.
BinaryClassification
.Trainers.FastForest(options);
75
var trainingMetrics = ML.
BinaryClassification
.EvaluateNonCalibrated(trainingPredictions, labelColumnName: "target");
77
var testingMetrics = ML.
BinaryClassification
.EvaluateNonCalibrated(testingPredictions, labelColumnName: "target");
TrainerEstimators\OnlineLinearTests.cs (2)
42
var apTrainer = ML.
BinaryClassification
.Trainers.AveragedPerceptron(
49
var svmTrainer = ML.
BinaryClassification
.Trainers.LinearSvm();
TrainerEstimators\PriorRandomTests.cs (1)
35
var pipe = ML.
BinaryClassification
.Trainers.Prior("Label");
TrainerEstimators\SdcaTests.cs (10)
31
var binaryTrainer = ML.
BinaryClassification
.Trainers.SdcaLogisticRegression(
35
var nonCalibratedBinaryTrainer = ML.
BinaryClassification
.Trainers.SdcaNonCalibrated(
75
var pipeline = mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(labelColumnName: "Label", featureColumnName: "Features", l2Regularization: 0.001f);
82
var metrics = mlContext.
BinaryClassification
.Evaluate(prediction);
118
var sdcaWithoutWeightBinary = mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(
120
var sdcaWithWeightBinary = mlContext.
BinaryClassification
.Trainers.SdcaLogisticRegression(
130
var metrics1 = mlContext.
BinaryClassification
.Evaluate(prediction1);
131
var metrics2 = mlContext.
BinaryClassification
.Evaluate(prediction2);
234
var pipeline = mlContext.
BinaryClassification
.Trainers.SdcaNonCalibrated(
242
var metrics = mlContext.
BinaryClassification
.EvaluateNonCalibrated(prediction);
TrainerEstimators\SymSgdClassificationTests.cs (1)
36
var initPredictor = ML.
BinaryClassification
.Trainers.SdcaLogisticRegression().Fit(transformedData);
TrainerEstimators\TrainerEstimators.cs (10)
92
var trainers = new[] { ML.
BinaryClassification
.Trainers.SgdCalibrated(l2Regularization: 0, numberOfIterations: 80),
93
ML.
BinaryClassification
.Trainers.SgdCalibrated(new Trainers.SgdCalibratedTrainer.Options(){ L2Regularization = 0, NumberOfIterations = 80})};
108
var metrics = ML.
BinaryClassification
.Evaluate(result);
124
var trainers = new[] { ML.
BinaryClassification
.Trainers.SgdNonCalibrated(lossFunction : new SmoothedHingeLoss()),
125
ML.
BinaryClassification
.Trainers.SgdNonCalibrated(new Trainers.SgdNonCalibratedTrainer.Options() { LossFunction = new HingeLoss() }) };
139
var metrics = ML.
BinaryClassification
.EvaluateNonCalibrated(result);
164
ML.
BinaryClassification
.Trainers.LdSvm(new LdSvmTrainer.Options() { LambdaTheta = 0.02f, NumberOfIterations = 100 }),
165
ML.
BinaryClassification
.Trainers.LdSvm(numberOfIterations: 100),
166
ML.
BinaryClassification
.Trainers.LdSvm(numberOfIterations: 100, useCachedData: false)
180
var metrics = ML.
BinaryClassification
.EvaluateNonCalibrated(result);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (16)
25
var trainer = ML.
BinaryClassification
.Trainers.FastTree(
132
var trainer = ML.
BinaryClassification
.Trainers.FastTree(
184
var trainer = ML.
BinaryClassification
.Trainers.FastForest(
239
var trainer = ML.
BinaryClassification
.Trainers.FastTree(
307
var trainer = ML.
BinaryClassification
.Trainers.FastTree(
332
.Append(ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "CombinedFeatures"));
335
var metrics = ML.
BinaryClassification
.Evaluate(prediction);
338
var naivePipeline = ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "Features");
341
var naiveMetrics = ML.
BinaryClassification
.Evaluate(naivePrediction);
378
.Append(ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "CombinedFeatures"));
381
var metrics = ML.
BinaryClassification
.Evaluate(prediction);
417
.Append(ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "CombinedFeatures"));
420
var metrics = ML.
BinaryClassification
.Evaluate(prediction);
741
.Append(ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "CombinedFeatures"));
752
.Append(ML.
BinaryClassification
.Trainers.SdcaLogisticRegression("Label", "CombinedFeatures"));
755
var metrics = ML.
BinaryClassification
.Evaluate(prediction);
TrainerEstimators\TreeEstimators.cs (10)
41
var trainer = ML.
BinaryClassification
.Trainers.FastTree(
64
var trainer = ML.
BinaryClassification
.Trainers.LightGbm(new LightGbmBinaryTrainer.Options
86
var trainer = ML.
BinaryClassification
.Trainers.LightGbm(new LightGbmBinaryTrainer.Options
112
var trainer = ML.
BinaryClassification
.Trainers.LightGbm(new LightGbmBinaryTrainer.Options
152
var trainer = ML.
BinaryClassification
.Trainers.FastForest(
988
var estimator = pipeline.Append(ML.
BinaryClassification
.Trainers.FastTree(
1006
var estimator = pipeline.Append(ML.
BinaryClassification
.Trainers.FastForest(
1027
var estimator = pipeline.Append(context.MulticlassClassification.Trainers.OneVersusAll(context.
BinaryClassification
.Trainers.FastTree()));
1049
var trainer = pipeline.Append(ML.
BinaryClassification
.Trainers.LightGbm(
1084
var trainer = pipeline.Append(context.
BinaryClassification
.Trainers.LightGbm(
Transformers\CountTargetEncodingTests.cs (3)
87
.Append(ML.
BinaryClassification
.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weights = x.Model.Weights));
95
.Append(ML.
BinaryClassification
.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weightsNoNoise = x.Model.Weights));
104
.Append(ML.
BinaryClassification
.Trainers.AveragedPerceptron().WithOnFitDelegate(x => weightsNoNoise2 = x.Model.Weights));
Transformers\TextFeaturizerTests.cs (1)
783
.Append(ML.
BinaryClassification
.Trainers.FastTree());