Accuracy: Accuracy

Description Usage Arguments Value Examples

Description

Returns the Accuracy for a classification problem.

Usage

1
Accuracy(Y, Y_hat)

Arguments

Y

Ground truth numeric vector.

Y_hat

Predicted Labels numeric vector.

Value

A numeric value corresponding to the Accuracy of a 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)
Accuracy(Y = Y, Y_hat = Y_hat)

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