optpolicy_functions.OptimalPolicy.fairscores#
- OptimalPolicy.fairscores(data_df, data_title='')#
Make scores independent of protected variables. Experimental.
- Parameters
data_df (DataFrame) – Input data.
data_title (String, optional) – This string is used as title in outputs. The default is ‘’.
- Returns
data_fair_df (DataFrame) – Input data with additional fairness adjusted scores.
names_fair_scores (List of strings.) – Names of adjusted scores.
outpath (String) – Location of directory in which output is saved.