Learn R Programming

MLmetrics (version 1.1.1)

RRSE: Root Relative Squared Error Loss

Description

Compute the root relative squared error regression loss.

Usage

RRSE(y_pred, y_true)

Value

Root Relative Squared Error Loss

Arguments

y_pred

Estimated target values vector

y_true

Ground truth (correct) target values vector

Examples

Run this code
data(cars)
reg <- lm(log(dist) ~ log(speed), data = cars)
RRSE(y_pred = exp(reg$fitted.values), y_true = cars$dist)

Run the code above in your browser using DataLab