bias: Bias

Description Usage Arguments Value Meta Information See Also Examples

View source: R/regr_bias.R

Description

Regression measure defined as

mean(t - r).

Good predictions score close to 0.

Usage

1
bias(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(1).

Meta Information

See Also

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

Examples

1
2
3
4
set.seed(1)
truth = 1:10
response = truth + rnorm(10)
bias(truth, response)

mlr3measures documentation built on Nov. 5, 2019, 9:06 a.m.