ae: Calculate absolute error between actual and forecast.

Description Usage Arguments Value Examples

View source: R/errors.R

Description

ae takes actual and forecast numeric vectors and returns a numeric vector where forecast is subtracted from the actual and then the absolute value is taken of those errors.

Usage

1
ae(y_true = NULL, y_pred = NULL, actual = NULL, forecast = NULL)

Arguments

y_true

Ground truth (correct) target values.

y_pred

Estimated target values.

actual

a numeric vector of actuals.

forecast

a numeric vector of forecasts.

Value

a numeric vector of absolute errors.

Examples

1
2
# Examples
ae(1:100, 100:1)

scorer documentation built on May 29, 2017, 4:24 p.m.