Computes the element-wise absolute errors between the input vectors.
error_abs(actual, predicted)
actual | A numeric vector with the actual values |
---|---|
predicted | A numeric vector with the predicted values. Each element in
this vector must be a prediction for the corresponding element in
|
Returns a double vector with the element-wise absolute error values.
#> [1] 0.31542949 0.07903868 0.27487407 0.67623330 0.50883019 0.14065946 #> [7] 0.03688615 0.49976936 0.69356825 0.37394136