R/auc.mat.R

Defines functions auc.mat

# borrowed from glmnet
auc.mat=function(y,prob,weights=rep(1,nrow(y))){
    Weights=as.vector(weights*y)
    ny=nrow(y)
    Y=rep(c(0,1),c(ny,ny))
    Prob=c(prob,prob)
    auc(Y,Prob,Weights)
  }

  
kjytay/fwelnet documentation built on June 9, 2020, 1:39 p.m.