Sage-Bionetworks / challengescoring

This R package provides scoring mechanisms for computational challenges and implements the bayesBootLadderBoot approach for avoiding test data leakage.
Apache License 2.0
3 stars 0 forks source link

Add Metrics #13

Open thomasyu888 opened 4 years ago

thomasyu888 commented 4 years ago
andrewelamb commented 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?

allaway commented 4 years ago

This might seem dumb, but wrapping it in as.numeric should do the trick:

foo <- as.numeric(pROC::auc(...))
allaway commented 4 years ago

At least, that worked for me when I tried a few different things.

andrewelamb commented 4 years ago

That worked!