# mean squared error
# regarding prediction on a testset
MSE <- function(x, y){
mse <- mean((x - y)^2)
return(mse)
}
# mean absolute error
MAE <- function(x, y){
mae <- mean(abs(x-y))
return(mae)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.