What each metric means
With n pairs, residual rᵢ = actualᵢ − predictedᵢ.
- MSE = mean of rᵢ². Units are the target's units squared.
- RMSE = square root of MSE. Same units as the target.
- MAE = mean of |rᵢ|. Same units as the target, less sensitive to outliers than RMSE.
- MAPE = mean of |rᵢ| / |actualᵢ| × 100 over nonzero actuals only.
- R² = 1 − Σrᵢ² / Σ(actualᵢ − mean actual)².
The definitions follow the scikit-learn metrics documentation, with the MAPE zero handling noted above.