Glossary term
Glossary term
Evaluation and Benchmarks
The average loss per example when L1 loss is used. Calculate Mean Absolute Error as follows:
Calculate the L1 loss for a batch.
Divide the L1 loss by the number of examples in the batch.
Click the icon to see the formal math.
For example, consider the calculation of L1 loss on the following batch of five examples:
So, L1 loss is 8 and the number of examples is 5. Therefore, the Mean Absolute Error is:
Mean Absolute Error = L1 loss / Number of Examples
Mean Absolute Error = 8/5 = 1.6
Contrast Mean Absolute Error with Mean Squared Error and Root Mean Squared Error.
For example, consider the calculation of L1 loss on the following batch of five examples:
So, L1 loss is 8 and the number of examples is 5. Therefore, the Mean Absolute Error is:
Mean Absolute Error = L1 loss / Number of Examples
Created for this library
A retail forecasting team reports MAE per SKU so planners see the typical absolute deviation between forecast and actual sales.
A logistics team reports MAE on delivery time predictions because median absolute error is more intuitive than squared error for operations.
A demand forecasting team uses MAE alongside MAPE so planners can see typical absolute error in units, not just percentages.
Definition source: Google for Developers Machine Learning Glossary | Creative Commons Attribution 4.0 License