error: Error functions

mseR Documentation

Error functions

Description

Convenience functions for calculating loss. These can be passed as arguments to learners that support custom loss functions.

Usage

mse(x, y, na.rm = TRUE)

msew(x, y, weights = rep(1, length(y)), na.rm = TRUE)

rmse(x, y, na.rm = TRUE)

mae(x, y, na.rm = TRUE)

Arguments

x

Vector of True values

y

Vector of Estimated values

na.rm

Logical: If TRUE, remove NA values before computation. Default = TRUE

weights

Float, vector: Case weights


egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.