View source: R/tidyBinaryInfoStats.R
calculateConfusionMatrixStats | R Documentation |
The purpose of this is to make it possible to calculate accuracy stats in a DPLYR table (including dbplyr). Typically this will come from some sort of threshold based classification task where the classification output is a probability and the prediction class is a binary outcome.
calculateConfusionMatrixStats(df)
df |
a dataframe containing one observation per row & p_x1y1, p_x0y1, p_x1y0, and p_x0y0 columns (see probabilitiesFromConfusionMatrix) |
see also fBeta score vectorised function
the datatable with additional columns for confusion matrix stats: true_pos_rate / true_neg_rate / etc...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.