Learn R Programming

mlr3fairness (version 0.4.0)

mlr_learners_fairness: Fair Learners in mlr3

Description

Fair Learners in mlr3

Usage

mlr_learners_fairness

Arguments

Value

A data.table containing an overview of available fair learners.

Format

An object of class data.table (inherits from data.frame) with 5 rows and 3 columns.

Predefined measures

mlr3fairness comes with a set of predefined 'fair learners' listed below:

keypackagereference
regr.fairfrrmfairmlScutari et al., 2021
classif.fairfgrrmfairmlScutari et al., 2021
regr.fairzlmfairmlZafar et al., 2019
classif.fairzlrmfairmlZafar et al., 2019
regr.fairnclmfairmlKomiyama et al., 2018

Protected Attributes

The protected attribute is specified as a col_role in the corresponding mlr3::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

Run this code
if (FALSE) { # rlang::is_installed("fairml")
# example code

library("mlr3")
# Available learners:
mlr_learners_fairness
}

Run the code above in your browser using DataLab