Description Usage Arguments Value Examples
rmse
takes actual and forecast numeric vectors and returns a
numeric vector where forecast is subtracted from the actual,
the errors are then squared, the average of those squared error is
taken, and lastly, the root taken of that mean squared error value.
1 2 |
y_true |
Ground truth (correct) target values. |
y_pred |
Estimated target values. |
actual |
a numeric vector of actuals. |
forecast |
a numeric vector of forecasts. |
na.rm |
a logical value indicating whether |
... |
additional arguments to be passed to mean() |
a numeric vector of length one: the mean of of absolute percent errors.
1 2 | # Examples
rmse(1:100, 100:1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.