R/metrics.R

Defines functions rmse mae

rmse <- function(ground_truth, prediction) {
    sqrt(mean((ground_truth - prediction)^2))
}

# 
mae <- function(ground_truth, prediction) {
    mean(abs(ground_truth - prediction))
}
statist-bhfz/grideR documentation built on Aug. 8, 2019, 7:08 p.m.