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