MeanBiasErrorMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Regression

Computes Mean Bias Error (MBE): average signed error showing systematic over/under-prediction.

Implements: IRegressionMetric<T>

For Beginners

Mean Bias Error tells you if your model systematically over or under-predicts:

  • MBE = 0: No systematic bias (over and under-predictions cancel out)
  • MBE > 0: Model tends to over-predict (predictions are too high on average)
  • MBE < 0: Model tends to under-predict (predictions are too low on average)

Note: MBE alone doesn’t tell you about accuracy - use alongside MAE or RMSE. A model could have MBE ≈ 0 but terrible accuracy if errors are random but balanced.

How It Works

MBE = (1/N) * Σ(ŷ_i - y_i)

Constructors

Constructor Summary
MeanBiasErrorMetric()

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)