brierScore: Brier Score

Description Usage Arguments Value Examples

Description

Function used to compute Brier Score, a measure of probability calibration.

Usage

1
brierScore(phat, truth, positive = 1)

Arguments

phat

probability of a instance to belogn to the class positive

truth

class of the instance

positive

value of the positive (minority) class

Value

Brier Score statistics

Examples

1
2
3
truth <- c(1,1,1,0,0,0,1,0,1,0)
phat <- c(0.9,0.8,0.4,0.5,0.3,0.2,0.8,0.3,0.8,0.3)
brierScore(phat, truth, 1)

dalpozz/warping documentation built on May 14, 2019, 3:32 p.m.