FalseNegativeRateMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Classification
Computes False Negative Rate (FNR): proportion of actual positives incorrectly predicted as negative.
Implements: IClassificationMetric<T>
For Beginners
FNR answers: “Of all actual positives, how many did we miss?”
- FNR = 0: Perfect - caught all positives
- FNR = 0.2: Missed 20% of actual positives
- FNR = 1: Missed all positives
Critical in medical diagnostics (low FNR = fewer missed diseases) and fraud detection (low FNR = fewer missed fraudulent transactions).
How It Works
FNR = FN / (FN + TP) = 1 - Recall = 1 - TPR
Constructors
| Constructor | Summary |
|---|---|
FalseNegativeRateMetric() |
|
FalseNegativeRateMetric(T positiveLabel) |
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> predictions, ReadOnlySpan<T> actuals, ConfidenceIntervalMethod ciMethod, double confidenceLevel, int bootstrapSamples, int? randomSeed) |
|
T Compute(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals) |