Computes the element-wise squared errors between the input vectors.
error_sqr(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 squared error values.
#> [1] 0.55319306 0.03983867 0.05645605 0.05041084 0.40258459 0.10318457 #> [7] 0.05499795 0.21076017 0.03073805 0.57427400