View source: R/classification_metric.R
Compute the number of generalized true/false positives/negatives, optionally conditioned on protected attributes. Generalized counts are based on scores and not on the hard predictions
1 2 | generalized_binary_confusion_matrix(class_metric, privileged = NULL,
dnn = c("Reference", "Prediction"))
|
class_metric |
metric class instance |
privileged |
(bool, optional) Boolean prescribing whether to condition this metric on the 'privileged_groups', if 'TRUE', or the 'unprivileged_groups', if 'FALSE'. Defaults to 'NULL' meaning this metric is computed over the entire dataset |
dnn |
option |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.