1 type derived from BinaryClassificationMetrics
Microsoft.ML.Data (1)
Evaluators\Metrics\CalibratedBinaryClassificationMetrics.cs (1)
12
public sealed class CalibratedBinaryClassificationMetrics :
BinaryClassificationMetrics
2 instantiations of BinaryClassificationMetrics
Microsoft.ML.Data (2)
Evaluators\BinaryClassifierEvaluator.cs (2)
961
result = new
BinaryClassificationMetrics
(Host, cursor, confusionMatrix);
1025
result = new
BinaryClassificationMetrics
(Host, cursor, confusionMatrix);
144 references to BinaryClassificationMetrics
Microsoft.ML.AutoML (51)
API\BinaryClassificationExperiment.cs (38)
61
/// See <see cref="
BinaryClassificationMetrics
.Accuracy"/>.
66
/// See <see cref="
BinaryClassificationMetrics
.AreaUnderRocCurve"/>.
71
/// See <see cref="
BinaryClassificationMetrics
.AreaUnderPrecisionRecallCurve"/>.
76
/// See <see cref="
BinaryClassificationMetrics
.F1Score"/>.
81
/// See <see cref="
BinaryClassificationMetrics
.PositivePrecision"/>.
86
/// See <see cref="
BinaryClassificationMetrics
.PositiveRecall"/>.
91
/// See <see cref="
BinaryClassificationMetrics
.NegativePrecision"/>.
96
/// See <see cref="
BinaryClassificationMetrics
.NegativeRecall"/>.
141
public sealed class BinaryClassificationExperiment : ExperimentBase<
BinaryClassificationMetrics
, BinaryExperimentSettings>
164
public override ExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, ColumnInformation columnInformation, IEstimator<ITransformer> preFeaturizer = null, IProgress<RunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
190
TrialResultMonitor<
BinaryClassificationMetrics
> monitor = null;
195
monitor = new TrialResultMonitor<
BinaryClassificationMetrics
>(channel, pipeline);
209
var result = new ExperimentResult<
BinaryClassificationMetrics
>(runDetails, bestRun);
214
public override ExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, IDataView validationData, ColumnInformation columnInformation, IEstimator<ITransformer> preFeaturizer = null, IProgress<RunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
223
TrialResultMonitor<
BinaryClassificationMetrics
> monitor = null;
228
monitor = new TrialResultMonitor<
BinaryClassificationMetrics
>(channel, pipeline);
242
var result = new ExperimentResult<
BinaryClassificationMetrics
>(runDetails, bestRun);
247
public override ExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, IDataView validationData, string labelColumnName = "Label", IEstimator<ITransformer> preFeaturizer = null, IProgress<RunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
257
public override ExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, string labelColumnName = "Label", string samplingKeyColumn = null, IEstimator<ITransformer> preFeaturizer = null, IProgress<RunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
268
public override CrossValidationExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, uint numberOfCVFolds, ColumnInformation columnInformation = null, IEstimator<ITransformer> preFeaturizer = null, IProgress<CrossValidationRunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
277
TrialResultMonitor<
BinaryClassificationMetrics
> monitor = null;
282
monitor = new TrialResultMonitor<
BinaryClassificationMetrics
>(channel, pipeline);
298
var result = new CrossValidationExperimentResult<
BinaryClassificationMetrics
>(runDetails, bestResult);
303
public override CrossValidationExperimentResult<
BinaryClassificationMetrics
> Execute(IDataView trainData, uint numberOfCVFolds, string labelColumnName = "Label", string samplingKeyColumn = null, IEstimator<ITransformer> preFeaturizer = null, IProgress<CrossValidationRunDetail<
BinaryClassificationMetrics
>> progressHandler = null)
314
private protected override RunDetail<
BinaryClassificationMetrics
> GetBestRun(IEnumerable<RunDetail<
BinaryClassificationMetrics
>> results)
319
private protected override CrossValidationRunDetail<
BinaryClassificationMetrics
> GetBestCrossValRun(IEnumerable<CrossValidationRunDetail<
BinaryClassificationMetrics
>> results)
406
return new TrialResult<
BinaryClassificationMetrics
>()
425
var
metrics = _context.BinaryClassification.EvaluateNonCalibrated(eval, metricManager.LabelColumn, predictedLabelColumnName: metricManager.PredictedColumn);
432
return new TrialResult<
BinaryClassificationMetrics
>()
470
private double GetMetric(BinaryClassificationMetric metric,
BinaryClassificationMetrics
metrics)
API\ExperimentResults\CrossValidationExperimentResult.cs (1)
13
/// <typeparam name="TMetrics">Metrics type for the experiment (like <see cref="
BinaryClassificationMetrics
"/>).</typeparam>
API\ExperimentResults\ExperimentResult.cs (1)
13
/// <typeparam name="TMetrics">Metrics type for the experiment (like <see cref="
BinaryClassificationMetrics
"/>).</typeparam>
API\RunDetails\RunDetail.cs (1)
18
/// <typeparam name="TMetrics">Metrics type for the experiment (like <see cref="
BinaryClassificationMetrics
"/>).</typeparam>
AutoMLExperiment\IMetricManager.cs (1)
56
var
metric = context.BinaryClassification.EvaluateNonCalibrated(eval, labelColumnName: LabelColumn, predictedLabelColumnName: PredictedColumn);
Experiment\MetricsAgents\BinaryMetricsAgent.cs (3)
9
internal class BinaryMetricsAgent : IMetricsAgent<
BinaryClassificationMetrics
>
21
public double GetScore(
BinaryClassificationMetrics
metrics)
81
public
BinaryClassificationMetrics
EvaluateMetrics(IDataView data, string labelColumn, string groupIdColumn)
Experiment\Runners\CrossValSummaryRunner.cs (4)
96
if (typeof(TMetrics) == typeof(
BinaryClassificationMetrics
))
98
var newMetrics = metrics.Select(x => x as
BinaryClassificationMetrics
);
101
var
result = new BinaryClassificationMetrics(
111
confusionMatrix: (metricsClosestToAvg as
BinaryClassificationMetrics
).ConfusionMatrix);
Utils\BestResultUtil.cs (2)
13
public static RunDetail<
BinaryClassificationMetrics
> GetBestRun(IEnumerable<RunDetail<
BinaryClassificationMetrics
>> results,
Microsoft.ML.AutoML.Samples (6)
AutoFit\BinaryClassificationExperiment.cs (4)
26
ExperimentResult<
BinaryClassificationMetrics
> experimentResult = mlContext.Auto()
31
RunDetail<
BinaryClassificationMetrics
> bestRun = experimentResult.BestRun;
39
BinaryClassificationMetrics
testMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(testDataViewWithBestScore);
62
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
AutoMLExperiment.cs (1)
128
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
155
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Microsoft.ML.AutoML.Tests (7)
MetricsAgentsTests.cs (5)
22
var
metrics = MetricsUtil.CreateBinaryClassificationMetrics(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8);
36
var
metrics = MetricsUtil.CreateBinaryClassificationMetrics(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8);
50
var
metrics = MetricsUtil.CreateBinaryClassificationMetrics(1, 1, 1, 1, 1, 1, 1, 1);
167
private static double GetScore(
BinaryClassificationMetrics
metrics, BinaryClassificationMetric metric)
187
private static bool IsPerfectModel(
BinaryClassificationMetrics
metrics, BinaryClassificationMetric metric)
MetricsUtil.cs (2)
12
public static
BinaryClassificationMetrics
CreateBinaryClassificationMetrics(
17
return CreateInstance<
BinaryClassificationMetrics
>(auc, accuracy,
Microsoft.ML.Data (8)
Evaluators\BinaryClassifierEvaluator.cs (4)
939
public
BinaryClassificationMetrics
Evaluate(IDataView data, string label, string score, string predictedLabel)
956
BinaryClassificationMetrics
result;
980
public
BinaryClassificationMetrics
EvaluateWithPRCurve(
1020
BinaryClassificationMetrics
result;
TrainCatalog.cs (4)
223
public
BinaryClassificationMetrics
EvaluateNonCalibrated(IDataView data, string labelColumnName = DefaultColumnNames.Label, string scoreColumnName = DefaultColumnNames.Score,
237
/// Then evaluate each sub-model against <paramref name="labelColumnName"/> and return a <see cref="
BinaryClassificationMetrics
"/> object, which
249
public IReadOnlyList<CrossValidationResult<
BinaryClassificationMetrics
>> CrossValidateNonCalibrated(
255
return result.Select(x => new CrossValidationResult<
BinaryClassificationMetrics
>(x.Model,
Microsoft.ML.Fairlearn (1)
Reductions\GridSearchTrialRunner.cs (1)
89
var
metrics = _context.BinaryClassification.EvaluateNonCalibrated(eval, this._labelColumn);
Microsoft.ML.IntegrationTests (7)
Common.cs (3)
173
/// Check that a <see cref="
BinaryClassificationMetrics
"/> object is valid.
176
public static void AssertMetrics(
BinaryClassificationMetrics
metrics)
201
AssertMetrics(metrics as
BinaryClassificationMetrics
);
Evaluation.cs (1)
75
var
metrics = mlContext.BinaryClassification.EvaluateNonCalibrated(scoredData);
Training.cs (3)
65
var
sdcaMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(sdcaPredictions);
67
var
fastTreeMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(fastTreePredictions);
69
var
ffmMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(ffmPredictions);
Microsoft.ML.Samples (38)
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (2)
59
var
metrics = mlContext.BinaryClassification
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (2)
70
var
metrics = mlContext.BinaryClassification
137
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
134
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\FastForest.cs (2)
62
var
metrics = mlContext.BinaryClassification
129
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (2)
74
var
metrics = mlContext.BinaryClassification
141
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
132
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
144
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
129
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
138
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LdSvm.cs (2)
59
var
metrics = mlContext.BinaryClassification
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (2)
68
var
metrics = mlContext.BinaryClassification
135
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
129
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
140
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (2)
59
var
metrics = mlContext.BinaryClassification
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (2)
68
var
metrics = mlContext.BinaryClassification
135
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
134
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
146
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (2)
67
var
metrics = mlContext.BinaryClassification
133
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (2)
81
var
metrics = mlContext.BinaryClassification
148
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
138
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (2)
59
var
metrics = mlContext.BinaryClassification
126
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (2)
68
var
metrics = mlContext.BinaryClassification
135
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
129
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
138
private static void PrintMetrics(
BinaryClassificationMetrics
metrics)
Microsoft.ML.Samples.OneDal (2)
Program.cs (2)
84
var
trainingMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(trainingPredictions, labelColumnName: labelName);
86
var
testingMetrics = mlContext.BinaryClassification.EvaluateNonCalibrated(testingPredictions, labelColumnName: labelName);
Microsoft.ML.Tests (5)
TrainerEstimators\OneDalEstimators.cs (2)
75
var
trainingMetrics = ML.BinaryClassification.EvaluateNonCalibrated(trainingPredictions, labelColumnName: "target");
77
var
testingMetrics = ML.BinaryClassification.EvaluateNonCalibrated(testingPredictions, labelColumnName: "target");
TrainerEstimators\SdcaTests.cs (1)
242
var
metrics = mlContext.BinaryClassification.EvaluateNonCalibrated(prediction);
TrainerEstimators\TrainerEstimators.cs (2)
139
var
metrics = ML.BinaryClassification.EvaluateNonCalibrated(result);
180
var
metrics = ML.BinaryClassification.EvaluateNonCalibrated(result);
Microsoft.ML.Transforms (19)
MetricStatistics.cs (12)
140
/// statistics over multiple observations of <see cref="
BinaryClassificationMetrics
"/>.
142
public sealed class BinaryClassificationMetricsStatistics : IMetricsStatistics<
BinaryClassificationMetrics
>
145
/// Summary Statistics for <see cref="
BinaryClassificationMetrics
.AreaUnderRocCurve"/>.
150
/// Summary Statistics for <see cref="
BinaryClassificationMetrics
.Accuracy"/>.
155
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.PositivePrecision"/>.
160
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.PositiveRecall"/>.
165
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.NegativePrecision"/>.
170
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.NegativeRecall"/>.
175
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.F1Score"/>.
180
/// Summary statistics for <see cref="
BinaryClassificationMetrics
.AreaUnderPrecisionRecallCurve"/>.
200
void IMetricsStatistics<
BinaryClassificationMetrics
>.Add(
BinaryClassificationMetrics
metrics)
PermutationFeatureImportanceExtensions.cs (7)
195
/// <see cref="ImmutableArray"/> of <see cref="
BinaryClassificationMetrics
"/> objects is returned. See the sample below for an
224
return PermutationFeatureImportance<TModel,
BinaryClassificationMetrics
, BinaryClassificationMetricsStatistics>.GetImportanceMetricsMatrix(
258
/// <see cref="ImmutableArray"/> of <see cref="
BinaryClassificationMetrics
"/> objects is returned. See the sample below for an
296
BinaryClassificationMetrics
evaluationFunc(IDataView idv) => catalog.EvaluateNonCalibrated(idv, labelColumnName);
311
private static
BinaryClassificationMetrics
BinaryClassifierDelta(
312
BinaryClassificationMetrics
a,
BinaryClassificationMetrics
b)