Learn R Programming

measures (version 0.3)

RMSE: Root mean squared error

Description

The RMSE is aggregated as sqrt(mean(rmse.vals.on.test.sets^2))

Usage

RMSE(truth, response)

Arguments

truth

[numeric] vector of true values

response

[numeric] vector of predicted values

Examples

Run this code
# NOT RUN {
n = 20
set.seed(123)
truth = rnorm(n)
response = rnorm(n)
RMSE(truth, response)
# }

Run the code above in your browser using DataLab