R/MSE.R

#' @title Mean Square Error
#' @description
#' Function to calculate the mean square error
#' 
#' @param y is the value of your actual
#' @param y_pred is the value that your model predicted
#' @return the MSE
#' @export
#' 
MSE <- function(y,y_pred){mean((y-y_pred)^2)}
moone009/tmp_preprocess documentation built on May 23, 2019, 6:10 a.m.