AUCROCMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes Area Under the ROC Curve (AUC-ROC): measures discrimination ability.
Implements: IProbabilisticClassificationMetric<T>
For Beginners
AUC-ROC answers: “If I pick a random positive and random negative, what’s the probability the model scores the positive higher?”
- AUC = 1.0: Perfect ranking
- AUC = 0.5: Random guessing (no discrimination)
- AUC < 0.5: Worse than random (model is inverted)
How It Works
AUC-ROC measures how well the model ranks positive examples higher than negative examples.
Advantages: Threshold-independent, works well with imbalanced data, widely used.
Constructors
| Constructor | Summary |
|---|---|
AUCROCMetric() |
Properties
| Property | Summary |
|---|---|
MetricDirection Direction { get; } |
|
T MaxValue { get; } |
|
T MinValue { get; } |
|
bool RequiresProbabilities { get; } |
|
bool SupportsMultiClass { get; } |
|
string Category { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
MetricWithCI<T> ComputeWithCI(ReadOnlySpan<T> probabilities, ReadOnlySpan<T> actuals, int numClasses, ConfidenceIntervalMethod ciMethod, double confidenceLevel, int bootstrapSamples, int? randomSeed) |
|
T Compute(ReadOnlySpan<T> probabilities, ReadOnlySpan<T> actuals, int numClasses) |