MedianAbsoluteError
DashAI.back.metrics.regression.MedianAbsoluteError
Median of absolute differences between predicted and true values.
Median Absolute Error (MedAE) is a robust regression metric that uses the median rather than the mean of the absolute residuals. Because the median is insensitive to extreme values, MedAE is far less affected by outliers than MAE, MSE, or RMSE, making it the preferred metric when the target distribution has heavy tails or occasional extreme measurements.
::
MedAE(y, ŷ) = median( |y₁ - ŷ₁|, …, |yₙ - ŷₙ| )
Range: [0, +∞), lower is better (MAXIMIZE = False).