3.4 Mean Absolute Error (MAE)
[video] /api/lesson-media/videos/9b417aa2-5e9f-4ae3-a9db-2a3b7f03f372-1794878472019-8d84efbcba9b5006.mp4
[markdown] content available only on the platform
[markdown] content available only on the platform
Flashcards · 3.4 Mean Absolute Error (MAE)
Regression metric — A measure of how far continuous predictions are from the true values.
MAE, MSE, RMSE, R-squared.
Error (residual) — The difference between the actual value and the predicted value for one sample.
Actual 3.0, predicted 2.5 -> error 0.5.
Absolute error — The size of an error with its sign removed.
|-0.4| = 0.4
Mean Absolute Error (MAE) — The average of the absolute errors across all predictions.
(0.5 + 0.4 + 0.5) / 3 = 0.467
Error cancellation — Positive and negative errors offsetting each other when summed without absolute values.
+1 and -1 sum to 0.
Unit of MAE — MAE uses the same unit as the target variable, which makes it easy to explain.
MAE = 0.3 billion VND.
mean_absolute_error() — scikit-learn function that computes MAE from true and predicted values.
mean_absolute_error(y_true, y_pred)
