groupdiff_tau {mlr3fairness} | R Documentation |
Groupwise Operations
Description
groupdiff_tau()
computes , i.e. the smallest symmetric ratio between
and eqny
that is smaller than 1. If
is a vector, the symmetric ratio between all
elements in
is computed.
groupdiff_absdiff()
computes , i.e. the smallest absolute difference
between
and
.
If
is a vector, the symmetric absolute difference between all elements in
is computed.
Usage
groupdiff_tau(x)
groupdiff_absdiff(x)
groupdiff_diff(x)
Arguments
x |
( |
Value
A single numeric
.
Protected Attributes
The protected attribute is specified as a col_role
in the corresponding Task()
:
<Task>$col_roles$pta = "name_of_attribute"
This also allows specifying more than one protected attribute,
in which case fairness will be considered on the level of intersecting groups defined by all columns
selected as a predicted attribute.
Examples
groupdiff_tau(1:3)
groupdiff_diff(1:3)
groupdiff_absdiff(1:3)
[Package mlr3fairness version 0.3.2 Index]