Mean Absolute Error

noun

say it: “MEEN AB-suh-loot AIR-er” /ˈmin ˈæbsəˌlut ˈɛrər/

The average size of a model's misses, ignoring whether each guess was too high or too low, in the same units as the answers.

What is mean absolute error?

Mean absolute error is the average size of a model's misses, in the label's own units, whether each miss was too high or too low: "off by 4 cups, on average". Smaller is better.

from sklearn.metrics import mean_absolute_error
actual = [40, 65, 80]
guessed = [45, 60, 82]
print(mean_absolute_error(actual, guessed))   # 4.0

In a sentence

  • “Adding a feature lowered the mean absolute error from 9 cups to 6.”
  • “A mean absolute error of 4 means the guesses were off by 4 cups on average.”

Level: Journeyman · More AI Basics terms at this level

Updated