Mean Absolute Percent Error
Regression measure defined as
mean(abs((t - r) / t)).
mape(truth, response, na_value = NaN, ...)
truth |
( |
response |
( |
na_value |
( |
... |
( |
Performance value as numeric(1)
.
Type: "regr"
Range: [0, Inf)
Minimize: TRUE
Required prediction: response
This measure is undefined if any element of t is 0.
de Myttenaere, Arnaud, Golden, Boris, Le Grand, Bénédicte, Rossi, Fabrice (2016). “Mean Absolute Percentage Error for regression models.” Neurocomputing, 192, 38-48. ISSN 0925-2312, doi: 10.1016/j.neucom.2015.12.114.
set.seed(1) truth = 1:10 response = truth + rnorm(10) mape(truth, response)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.