BalancedErrorRateMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Classification

Computes Balanced Error Rate (BER): average of FNR and FPR.

Implements: IClassificationMetric<T>

For Beginners

Balanced Error Rate:

  • Equal weight to errors in both classes
  • Better for imbalanced datasets than standard error rate
  • Range: 0 to 1, lower is better
  • 0 = perfect classifier, 0.5 = random classifier

How It Works

BER = (FNR + FPR) / 2 = 1 - Balanced Accuracy

Constructors

Constructor Summary
BalancedErrorRateMetric()

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)