Description Usage Arguments Value Examples
This function computes the Accuracy loss (Acc) provided preds
and labels
, while optimizing for binary problems.
1 | df_acc_bin(preds, labels)
|
preds |
The |
labels |
The |
The optimized Accuracy.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.