RMSE

0th

Percentile

RMSE

Function calculates root mean squared error.

Keywords
arith, math
Usage
RMSE(vect1, vect2, rows_no)
Arguments
vect1
Numeric vector of predicted values
vect2
Numeric vector of observed values
rows_no
Number of observations
Aliases
  • RMSE
Examples
## The function is currently defined as
function (vect1, vect2, rows_no) 
{
    result = 0
    obs <- 0
    pred <- 0
    for (i in 1:rows_no) {
        result <- result + (vect1[i] - vect2[i])^2
    }
    result <- (result/rows_no)^0.5
    return(result)
  }
Documentation reproduced from package fscaret, version 0.8.5.2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.