View source: R/MeasureSubgroup.R
groupwise_metrics | R Documentation |
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.
groupwise_metrics(base_measure, task, intersect = TRUE)
base_measure |
( |
task |
|
intersect |
|
list
List of mlr3::Measures.
MeasureSubgroup
library("mlr3")
t = tsk("compas")
l = lrn("classif.rpart")
m = groupwise_metrics(msr("classif.acc"), t)
l$train(t)$predict(t)$score(m, t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.