# S3 method for ResampleResult
fairness_tensor(object, normalize = "all", ...)
Value
list() of confusion matrix for every group in "pta".
Arguments
object
(data.table::data.table() | mlr3::PredictionClassif | mlr3::ResampleResult)
A data.table with columns truth and prediction,
a mlr3::PredictionClassif or a mlr3::ResampleResult.
normalize
(character)
How should the fairness tensor be normalized?
"all" normalizes entries by dividing by dataset size,
"group" normalizes entries by dividing by group size and
"none" does not conduct any normalization at all.
...
any
Currently not used.
task
(mlr3::TaskClassif)
A mlr3::TaskClassif. Needs col_role"pta" to be set.
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.