group_model_performance: Group model performance

View source: R/group_model_performance.R

group_model_performanceR Documentation

Group model performance

Description

Special method for model performance evaluation. Counts number of tp, tn, fp, fn for each subgroup (and therefore potentially distinct cutoff), sums afterwards.

Usage

group_model_performance(x, protected, cutoff, performance_metric)

Arguments

x

object created with explain

protected

factor, vector with levels as subgroups

cutoff

vector of thresholds for each subgroup

performance_metric

name of performance metric

Value

score in performance metric between 0 and 1


ModelOriented/FairModels documentation built on Aug. 30, 2022, 5:48 p.m.