View source: R/civic_fairness.R
| civic_equalized_odds_curve | R Documentation |
Compute equalized odds curves across thresholds (binary only)
civic_equalized_odds_curve(
object,
data,
outcome,
protected,
positive = NULL,
thresholds = seq(0.05, 0.95, 0.05)
)
object |
A 'civic_model' (binary classification). |
data |
A data frame. |
outcome |
Character outcome column name. |
protected |
Character protected attribute column name. |
positive |
Positive class level. |
thresholds |
Numeric vector of thresholds. |
A tibble with columns: 'threshold', 'group', 'tpr', 'fpr', 'tnr'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.