divergence: Calculate Divergence

Description Usage Arguments Value Examples

View source: R/performance.R

Description

Calculate the divergence between empirical distributions

Usage

1
divergence(target, score)

Arguments

target

A numeric binary vector (0, 1)

score

A numeric vector containing scores or probabilities

Value

The Gini Coefficient

Examples

1
2
3
4
5
6
data(predictions)

score <- predictions$score
target <- predictions$target

divergence(target, score)

jbkunst/riskr documentation built on June 5, 2017, 5:13 p.m.