Skip to contents

Print an EvaluatorAccuracy object.

Usage

# S3 method for EvaluatorAccuracy
print(x, ...)

Arguments

x

An EvaluatorAccuracy object which should be printed.

...

Optional arguments for the print function.

Examples

x <- data.frame(var1 = c(1, 2, 3, 4, 5, 6, 7), target = c(1, 1, 1, 1, 0, 1, 0))
predictions <- c(1)
evaluation <- EvaluatorAccuracy(predictions, x, "target")
print(evaluation)
#> [1] 0.7142857