perf: Summary of Performance

Description Usage Arguments Value Examples

View source: R/performance.R

Description

Summary of Performance

Usage

1
perf(target, ...)

Arguments

target

A numeric binary vector (0, 1)

...

A data frame of scores, or a multiples score vectors: score1, score2, etc

Value

A 1 row data frame with the summary of the performance.

Examples

1
2
3
4
5
6
7
data(predictions)

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

perf(target, score)
perf(target, score, score2 = score + runif(length(score)))

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