auc: auc

Description Usage Arguments Value Examples

View source: R/metrics.R

Description

Returns the Area Under Curve statistic, which is often used to compare metricCurves.

Usage

1
auc(x, y)

Arguments

x

The X dimension of the metric curve.

y

The Y dimension of the metric curve.

Value

An AUC score

Examples

1
2
3
4
predicted <- sample(c(1,0), replace = TRUE, size = 150)
actual <- sample(c(1,0), replace = TRUE, size = 150)
myRoc <- roc(predicted,actual)
auc(myRoc$fallout, myRoc$recall)

Peder2911/evallib documentation built on Dec. 18, 2019, 2:41 a.m.