Learn R Programming

aqp (version 1.18)

brierScore: Multinominal Brier score

Description

Compute the multinominal Brier score

Usage

brierScore(x, classLabels, actual = "actual")

Arguments

x

data.frame, rows are predictions/observations, columns contain classes

classLabels

vector of predicted class labels (probabilities), corrosponding to column names in x

actual

name of column containing the observed class

Value

A single numeric value.

References

Brier, GLenn W. 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.