df_acc_bin: Accuracy loss (Acc) (computation function, binary...

Description Usage Arguments Value Examples

Description

This function computes the Accuracy loss (Acc) provided preds and labels, while optimizing for binary problems.

Usage

1

Arguments

preds

The predictions.

labels

The labels.

Value

The optimized Accuracy.

Examples

1
2
3
4
5
6
library(data.table)

# Binary classification problem
my_preds <- dnorm(rnorm(n = 9*6*10))
my_labels <- as.numeric(runif(n = 9*6*10) >= 0.5)
df_acc_bin(my_preds, my_labels)

Laurae2/Laurae documentation built on May 8, 2019, 7:59 p.m.