calcNCE {logicDT} | R Documentation |
Calculate the normalized cross entropy
Description
This function computes the normalized cross entropy (NCE) which is given by
where (for )
are the true classes,
are the risk/probability predictions and
is total unrestricted
empirical risk estimate.
Usage
calcNCE(preds, y)
Arguments
preds |
Numeric vector of risk estimates |
y |
Vector of true binary outcomes |
Details
Smaller values towards zero are generally prefered. A NCE of one or above would indicate that the used model yields comparable or worse predictions than the naive mean model.
Value
The normalized cross entropy
References
He, X., Pan, J., Jin, O., Xu, T., Liu, B., Xu, T., Shi, Y., Atallah, A., Herbrich, R., Bowers, S., Candela, J. Q. (2014). Practical Lessons from Predicting Clicks on Ads at Facebook. Proceedings of the Eighth International Workshop on Data Mining for Online Advertising 1-9. doi: 10.1145/2648584.2648589