View source: R/classification_metric.R
Class for computing metrics based on two BinaryLabelDatasets. The first dataset is the original one and the second is the output of the classification transformer (or similar)
1 2 | classification_metric(dataset, classified_dataset,
unprivileged_groups = NULL, privileged_groups = NULL)
|
dataset |
(BinaryLabelDataset) Dataset containing ground-truth labels |
classified_dataset |
(BinaryLabelDataset) Dataset containing predictions |
unprivileged_groups |
(list(list(list))): Unprivileged groups in the same format as 'privileged_groups' |
privileged_groups |
(list(list(list))) Privileged groups. Format is a list of 'lists' where the keys are 'protected_attribute_names' and the values are values in 'protected_attributes'. Each 'list' element describes a single group. See examples for more details. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.