error | R Documentation |
Returns the error between actual and predicted using metric
error(actual, predicted, metric = "rmse")
actual |
A numeric vector of true values |
predicted |
A numeric vector of estimated values |
metric |
A character naming how to compute the error |
The numeric error
error(actual = c(35, 36), predicted = c(36, 34), metric = "rmse")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.