View source: R/main_functions.R
brier_score | R Documentation |
Calculate the Brier Score for a set of predicted probabilities and observed outcomes. The Brier Score is a measure of the accuracy of probabilistic predictions. It is commonly used in the evaluation of predictive models.
brier_score(prob, observed, levels)
prob |
predicted probabilities |
observed |
|
levels |
A string vector with the original levels from the target variable |
Returns the Brier Score, a numeric value indicating the accuracy of the predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.