Evaluate a metric on each protected subgroup in a task.
Source:R/MeasureSubgroup.R
groupwise_metrics.RdInstantiates one new measure per protected attribute group in a task. Each metric is then evaluated only on predictions made for the given specific subgroup.
Arguments
- base_measure
(
Measure())
The base metric evaluated within each subgroup.- task
mlr3::Taskmlr3::Task()to instantiate measures for.- intersect
logical
Should multiple pta groups be intersected? Defaults toTRUE. Only relevant if more than oneptacolumns are provided.
Value
list
List of mlr3::Measures.