
Last chance! 50% off unlimited learning
Sale ends in
Compute the log loss for models with binary outcome.
performance_logloss(model, verbose = TRUE, ...)
Model with binary outcome.
Toggle off warnings.
Currently not used.
Numeric, the log loss of model
.
Logistic regression models predict the probability of an outcome of
being a "success" or "failure" (or 1 and 0 etc.). performance_logloss()
evaluates
how good or bad the predicted probabilities are. High values indicate
bad predictions, while low values indicate good predictions. The lower
the log-loss, the better the model predicts the outcome.
# NOT RUN {
data(mtcars)
m <- glm(formula = vs ~ hp + wt, family = binomial, data = mtcars)
performance_logloss(m)
# }
Run the code above in your browser using DataLab