MAEMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Regression
Computes Mean Absolute Error (MAE): average absolute difference between predictions and actuals.
Implements: IRegressionMetric<T>
For Beginners
MAE tells you the average magnitude of errors in your predictions. If MAE = 5, predictions are off by 5 units on average. Unlike MSE, it doesn’t penalize large errors more heavily, making it robust to outliers.
How It Works
MAE = (1/N) * Σ|y_i - ŷ_i|
Constructors
| Constructor | Summary |
|---|---|
MAEMetric() |
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) |