
Last chance! 50% off unlimited learning
Sale ends in
Measure to compare true observed response with predicted response in regression tasks.
rmse(truth, response, sample_weights = NULL, ...)
Performance value as numeric(1)
.
(numeric()
)
True (observed) values.
Must have the same length as response
.
(numeric()
)
Predicted response values.
Must have the same length as truth
.
(numeric()
)
Vector of non-negative and finite sample weights.
Must have the same length as truth
.
The vector gets automatically normalized to sum to one.
Defaults to equal sample weights.
(any
)
Additional arguments. Currently ignored.
Type: "regr"
Range:
Minimize: TRUE
Required prediction: response
The Root Mean Squared Error is defined as
Other Regression Measures:
ae()
,
ape()
,
bias()
,
ktau()
,
linex()
,
mae()
,
mape()
,
maxae()
,
maxse()
,
medae()
,
medse()
,
mse()
,
msle()
,
pbias()
,
pinball()
,
rae()
,
rmsle()
,
rrse()
,
rse()
,
rsq()
,
sae()
,
se()
,
sle()
,
smape()
,
srho()
,
sse()
set.seed(1)
truth = 1:10
response = truth + rnorm(10)
rmse(truth, response)
Run the code above in your browser using DataLab