powered by
Weighted mean absolute percentage error of predicted values.
mape(actual, predicted, w = NULL, clip_small = 0, ...)
Observed values.
Predicted values.
Optional case weights.
Minimal absolute value in the denominator. Used to avoid divisions by 0.
Further arguments passed to weighted_mean.
weighted_mean
A numeric vector of length one.
# NOT RUN { mape(1:10, (1:10)^2) mape(1:10, (1:10)^2, w = rep(1, 10)) mape(1:10, (1:10)^2, w = 1:10) # }
Run the code above in your browser using DataLab