RMSPE: Root Mean Square Percentage Error Loss

Description

Compute the root mean squared percentage error regression loss.

Usage

1
RMSPE(y_pred, y_true)

Arguments

y_pred

Estimated target values vector

y_true

Ground truth (correct) target values vector

Value

Root Mean Squared Percentage Error Loss

Examples

1
2
3
data(cars)
reg <- lm(log(dist) ~ log(speed), data = cars)
RMSPE(y_pred = exp(reg$fitted.values), y_true = cars$dist)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.