Fair Learners in mlr3
Predefined measures
mlr3fairness comes with a set of predefined fairn learners listed below:
key | package | reference |
regr.fairfrrm | fairml | Scutari et al., 2021 |
classif.fairfgrrm | fairml | Scutari et al., 2021 |
regr.fairzlm | fairml | Zafar et al., 2019 |
classif.fairzlrm | fairml | Zafar et al., 2019 |
regr.fairnclm | fairml | Komiyama et al., 2018 |
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
library("mlr3")
# Available learners:
mlr_learners_fairness
#> key package reference
#> <char> <char> <char>
#> 1: regr.fairfrrm fairml Scutari et al., 2021
#> 2: classif.fairfgrrm fairml Scutari et al., 2021
#> 3: regr.fairzlm fairml Zafar et al., 2019
#> 4: classif.fairzlrm fairml Zafar et al., 2019
#> 5: regr.fairnclm fairml Komiyama et al., 2018