Binary Brier Score
Brier score for binary classification problems defined as
1/n * sum(((t == positive) - p)^2).
I_i is 1 if observation i belongs to the positive class, and 0 otherwise.
Note that this (more common) definition of the Brier score is equivalent to the
original definition of the multi-class Brier score (see mbrier()
) divided by 2.
bbrier(truth, prob, positive, ...)
truth |
( |
prob |
( |
positive |
( |
... |
( |
Performance value as numeric(1)
.
Type: "binary"
Range: [0, 1]
Minimize: TRUE
Required prediction: prob
Brier GW (1950). “Verification of forecasts expressed in terms of probability.” Monthly Weather Review, 78(1), 1–3. doi: 10.1175/1520-0493(1950)078<0001:vofeit>2.0.co;2.
set.seed(1) lvls = c("a", "b") truth = factor(sample(lvls, 10, replace = TRUE), levels = lvls) prob = runif(10) bbrier(truth, prob, positive = "a")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.