# Evaluate a metric on each protected subgroup in a task.

Source:`R/MeasureSubgroup.R`

`groupwise_metrics.Rd`

Instantiates 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
`Task`

`mlr3::Task()`

to instantiate measures for.- intersect
`logical`

Should multiple pta groups be intersected? Defaults to`TRUE`

. Only relevant if more than one`pta`

columns are provided.

## Value

`list`

List of mlr3::Measures.