MAPE

0th

Percentile

Mean Absolute Percentage Error Loss

Compute the mean absolute percentage error regression loss.

Usage
MAPE(y_pred, y_true)
Arguments
y_pred
Estimated target values vector
y_true
Ground truth (correct) target values vector
Value

Mean Absolute Percentage Error Loss

Aliases
  • MAPE
Examples
data(cars)
reg <- lm(log(dist) ~ log(speed), data = cars)
MAPE(y_pred = exp(reg$fitted.values), y_true = cars$dist)
Documentation reproduced from package MLmetrics, version 1.1.1, License: GPL-2

Community examples

Looks like there are no examples yet.