Description Usage Arguments Details Value

View source: R/LogisticRegression.R

Log score diagnostic based on probabilities of predicting the correct class

1 | ```
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 ∑ - 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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.