View source: R/LogisticRegression.R
log_score | R Documentation |
Log score diagnostic based on probabilities of predicting the correct class
log_score(p, y)
p |
a vector of probabilities |
y |
a vector of the true observed response variable |
The log score is defined as
LS = 1/n \sum - log p (z)
where p(z)
is the probability of predicting the correct value z
. This is averaged over all data points.
The log score penalises probabilities that the model assigns to the correct class that are low, and rewards those that are high in the correct place.
a single value, the mean of the negative log of the probabilities for predicting the correct class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.