WeightedMAPEMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.Regression
Computes Weighted Mean Absolute Percentage Error (wMAPE): weighted by actual values.
Implements: IRegressionMetric<T>
For Beginners
wMAPE weights errors by magnitude:
- Larger actual values contribute more to the error
- More stable than MAPE when values near zero exist
- Common in demand forecasting and retail
- Also known as WMAPE or weighted APE
How It Works
wMAPE = 100 × Σ|y - ŷ| / Σ|y|
Constructors
| Constructor | Summary |
|---|---|
WeightedMAPEMetric() |
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) |