R/eval_L2.R

Defines functions eval_L2

eval_L2 <- function(true_scores,output){
  
  est_scores = matrix(0,nrow(true_scores),ncol(true_scores))
  est_scores[,output$order]= output$scores
  
  return(mean( (true_scores - est_scores)^2 ))
}
ericstrobl/RCI documentation built on May 29, 2022, 10:11 p.m.