AUC: AUC

Description Usage Arguments Value Examples

Description

Returns the Area Under the Curve for a binarry classification problem.

Usage

1
AUC(Y, Y_hat)

Arguments

Y

Ground truth numeric vector.

Y_hat

Predicted Labels numeric vector.

Value

A numeric value corresponding to the AUC of binary classification problem

Examples

1
2
3
Y = sample(x = c(1,2), size = 10, replace = TRUE)
Y_hat = sample(x = c(1,2), size = 10, replace = TRUE)
AUC(Y = Y, Y_hat = Y_hat)

PauloCirino/MLAT documentation built on May 13, 2019, 1:22 p.m.