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

View source: R/metrics.R

RMSER Documentation

Calculate the root mean squared error (RMSE) of prediction

Description

Calculate the root mean squared error (RMSE) of prediction

Usage

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


RMSE(borehole_pred$y_pred$Pred, borehole$y_true)

RMSE(borehole_cv$Pred, y)

GaSP documentation built on May 31, 2023, 7:54 p.m.