brier_score: Compute Brier Score
Description
The Brier score is the mean squared error between predicted probabilities
and the true binary outcome (0/1). Lower is better.
Usage
brier_score(y_true, y_prob, positive = "Active")
Value
Numeric Brier score.
Arguments
- y_true
True factor labels.
- y_prob
Predicted probabilities for the positive class.
- positive
Name of the positive class (default "Active").