Skip to contents

Compute the Root Mean Squared Error between predicted and actual values.

Usage

pred.RMSE(y_true, y_pred)

Arguments

y_true

Actual values.

y_pred

Predicted values.

Value

The root mean squared error.

Examples

y_true <- c(1, 2, 3, 4, 5)
y_pred <- c(1.1, 2.2, 2.9, 4.1, 4.8)
pred.RMSE(y_true, y_pred)
#> [1] 0.148324