R/transformPrediction.R

transformPrediction <- function(pred, threshold){
  if(pred<threshold){pred=0}else{pred=1}
  return(pred)
}

Try the TeachNet package in your browser

Any scripts or data that you put into this service are public.

TeachNet documentation built on May 2, 2019, 7 a.m.