RRSE: Root Relative Squared Error Loss

View source: R/Regression.R

RRSER Documentation

Root Relative Squared Error Loss

Description

Compute the root relative squared error regression loss.

Usage

RRSE(y_pred, y_true)

Arguments

y_pred

Estimated target values vector

y_true

Ground truth (correct) target values vector

Value

Root Relative Squared Error Loss

Examples

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

MLmetrics documentation built on May 29, 2024, 9:34 a.m.

Related to RRSE in MLmetrics...