RMSE {randomMachines}R Documentation

Root Mean Squared Error (RMSE) Function

Description

Computes the Root Mean Squared Error (RMSE), a widely used metric for evaluating the accuracy of predictions in regression tasks. The formula is given by

RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^{n}\left(y_{i}-\hat{y}_{i}\right)^{2}}

Usage

RMSE(predicted, observed)

Arguments

predicted

A vector of predicted values \hat{\mathbf{y}}.

observed

A vector of observed values \mathbf{y}.

Value

a the Root Mean Squared error calculated by the formula in the description.


[Package randomMachines version 0.1.0 Index]