gg_perf: Plot Performance

Description Usage Arguments Value Examples

Description

Return a plot with gg_roc, gg_dists, gg_cum, gg_gain

Usage

1
gg_perf(target, score)

Arguments

target

A numeric binary vector (0, 1)

score

A numeric vector containing scores or probabilities

Value

The plot

Examples

1
2
3
4
5
6
data(predictions)

score <- 1000 * predictions$score
target <- predictions$target

gg_perf(target, score)

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.