MaxErrorMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Maximum Error: the worst-case absolute prediction error.

Implements: IRegressionMetric<T>

For Beginners

Maximum error shows you the worst single prediction your model made. This is important for applications where even one large error is unacceptable (safety-critical systems, financial predictions with risk limits). Unlike MAE or RMSE, it’s not influenced by average performance

  • it only cares about the worst case.

How It Works

Max Error = max(|y_i - ŷ_i|)

Constructors

Constructor Summary
MaxErrorMetric()

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)