Mean absolute error (MAE) measures how far predictions miss numeric targets on average. It takes each prediction–target difference, ignores its sign, and averages the absolute values. Unlike accuracy, it fits regression because the result stays in the target’s units. section 4.3.3 section 4.3.6
Reading an MAE value
Suppose house-price targets are scaled by 100,000. An MAE of 0.5 means predictions are off by $50,000 on average. In a temperature forecast, a validation MAE of 2.44 means the predictions miss by 2.44°C on average. section 4.3.3 section 13.2.2
Use MAE to monitor regression quality even when mean squared error is the training loss. In K-fold validation, average the fold scores rather than trusting one split; four folds produced scores from 0.232 to 0.349, averaging 0.296. Plotting validation MAE across epochs can reveal when improvement stops and overfitting begins. section 4.3.3 section 4.3.4
np.mean(np.abs(preds - targets))
The NumPy expression directly implements MAE as the mean of absolute prediction errors. section 13.2.2









