RMSE: Calculate the root mean squared error (RMSE) of prediction

Description Usage Arguments Value Examples

View source: R/metrics.R

Description

Calculate the root mean squared error (RMSE) of prediction

Usage

1
RMSE(y_pred, y_true, normalized = FALSE)

Arguments

y_pred

A vector of predicted output values.

y_true

A vector of true output values.

normalized

An optional boolean: if TRUE, the RMSE is normalized by dividing it by the standard deviation of y_true.

Value

The RMSE or normalized RMSE.

Examples

1
2
3
RMSE(borehole_pred$y_pred$Pred, borehole$y_true)

RMSE(borehole_cv$Pred, y)

GaSP documentation built on June 7, 2021, 5:08 p.m.

Related to RMSE in GaSP...