powered by
preds
labels
df_acc_bin(preds, labels)
predictions
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)
Run the code above in your browser using DataLab