Symmetric Mean Absolute Percent Error
Regression measure defined as
2 * mean(abs(t - r) / (abs(t) + abs(r))).
smape(truth, response, na_value = NaN, ...)
truth |
( |
response |
( |
na_value |
( |
... |
( |
Performance value as numeric(1)
.
Type: "regr"
Range: [0, 2]
Minimize: TRUE
Required prediction: response
This measure is undefined if if any |t| + |r| is 0.
set.seed(1) truth = 1:10 response = truth + rnorm(10) smape(truth, response)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.