Mean Log Loss
logLoss
computes the average log loss between two numeric vectors.
logLoss(actual, predicted)
actual |
The ground truth binary numeric vector containing 1 for the positive class and 0 for the negative class. |
predicted |
A numeric vector of predicted values, where the values correspond
to the probabilities that each observation in |
actual <- c(1, 1, 1, 0, 0, 0) predicted <- c(0.9, 0.8, 0.4, 0.5, 0.3, 0.2) logLoss(actual, predicted)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.