ae {mlr3measures}R Documentation

Absolute Error (per observation)

Description

Calculates the per-observation absolute error as

\left| t_i - r_i \right|.

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

ae(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

See Also

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


[Package mlr3measures version 0.6.0 Index]