sle: Squared Log Error (per observation)

View source: R/regr_sle.R

sleR Documentation

Squared Log Error (per observation)

Description

Calculates the per-observation squared error as

(log(1 + t) - log(1 + r))^2.

Measure to compare true observed response with predicted response in regression tasks.

Note that this is an unaggregated measure, returning the losses per observation.

Usage

sle(truth, response, ...)

Arguments

truth

(numeric())
True (observed) values. Must have the same length as response.

response

(numeric())
Predicted response values. Must have the same length as truth.

...

(any)
Additional arguments. Currently ignored.

Value

Performance value as numeric(length(truth)).

Meta Information

  • Type: "regr"

  • Range (per observation): [0, Inf)

  • Minimize (per observation): TRUE

  • Required prediction: response

See Also

Other Regression Measures: ae(), ape(), bias(), ktau(), mae(), mape(), maxae(), maxse(), medae(), medse(), mse(), msle(), pbias(), rae(), rmse(), rmsle(), rrse(), rse(), rsq(), sae(), se(), smape(), srho(), sse()


mlr3measures documentation built on Aug. 5, 2022, 5:22 p.m.