rmse <- function(ground_truth, prediction) {
sqrt(mean((ground_truth - prediction)^2))
}
#
mae <- function(ground_truth, prediction) {
mean(abs(ground_truth - prediction))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.