Skip to content

Commit

Permalink
reorder conditional metrics to match defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMRuss committed Jul 25, 2024
1 parent 0914ff7 commit 871732f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/oxonfair/utils/conditional_group_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ def build_cond_form(metric, weighting):
"true_neg_rate": true_neg_rate,
"false_pos_rate": false_pos_rate,
"false_neg_rate": false_neg_rate,
"pos_pred_rate": pos_pred_rate,
"neg_pred_rate": neg_pred_rate,
"pos_data_rate": pos_data_rate,
"neg_data_rate": neg_data_rate,
"pos_pred_rate": pos_pred_rate,
}


Expand All @@ -83,8 +81,8 @@ def build_cond_form(metric, weighting):
abs_diff_pred_proportion = build_cond_form(gm.abs_diff_pred_proportion, total_weights)

wachter_measures = {'pos_data_proportion': pos_data_proportion,
'neg_data_proportion': neg_data_proportion,
'diff_data_proportion': diff_data_proportion,
'pos_pred_proportion': pos_pred_proportion,
'neg_pred_proportion': neg_pred_proportion,
'diff_pred_proportion': diff_pred_proportion}
'neg_data_proportion': neg_data_proportion,
'diff_data_proportion': diff_data_proportion,
'pos_pred_proportion': pos_pred_proportion,
'neg_pred_proportion': neg_pred_proportion,
'diff_pred_proportion': diff_pred_proportion}

0 comments on commit 871732f

Please sign in to comment.