Open thomasyu888 opened 4 years ago
For this function:
score_auc <- function(gold, pred) { pROC::auc(response = gold, predictor = pred) }
How do I return the actual auc value instead of just printing it?
This might seem dumb, but wrapping it in as.numeric should do the trick:
foo <- as.numeric(pROC::auc(...))
At least, that worked for me when I tried a few different things.
That worked!