Description Usage Arguments Details See Also Examples
mape computes the average absolute percent difference between two numeric vectors.
1 | mape(actual, predicted)
|
actual |
The ground truth numeric vector. |
predicted |
The predicted numeric vector, where each element in the vector
is a prediction for the corresponding element in |
mape is calculated as the average of (actual - predicted) / abs(actual).
This means that the function will return -Inf, Inf, or NaN
if actual is zero. Due to the instability at or near zero, smape or
mase are often used as alternatives.
1 2 3 |
[1] 0.08849776
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.