Difficulty: Easy Tags: Metrics & Evaluation
Uber's ETA team tracks one north-star error number every single day: simple, but it has to be exactly right, since it's the number that goes in front of leadership.
MAE = (1/n) * sum_i |y_i - yhat_i|
n
y_1 yhat_1
...
y_n yhat_n
Scalar MAE, 6 decimals.
1 <= n <= 10^6Input
4
10 12
15 14
20 18
12 13
Output
1.500000
No results yet
Run your code to check it against the examples, or submit to run every test.