powered by
Computation of the deviance, i.e., two times the negative log likelihood for risk estimates in a binary classification problem.
calcDev(preds, y)
The deviance
Numeric vector of predictions
True outcomes