View source: R/group_model_performance.R
group_model_performance | R Documentation |
Special method for model performance evaluation. Counts number of tp, tn, fp, fn for each subgroup (and therefore potentially distinct cutoff), sums afterwards.
group_model_performance(x, protected, cutoff, performance_metric)
x |
object created with |
protected |
factor, vector with levels as subgroups |
cutoff |
vector of thresholds for each subgroup |
performance_metric |
name of performance metric |
score in performance metric between 0 and 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.