Description Usage Arguments Value Examples
Calculates the Brier score to evaluate probabilities. A data frame of probabilities and ground truth labels must be passed in to evaluate. Raw probability data must be column1: prob G1, column2: prob G2, column3: obs labels, column4: Group (optional). Zero is optimal and more positive is less.
1 | brier_score(preds, positive = colnames(preds)[2])
|
preds |
Data frame: Data frame of probabilities and ground truth labels. |
positive |
Character vector: The name of the positive group, must equal a column name consisting of probabilities. |
Brier score
1 | r2 <- brier_score(preds)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.