-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements and Bug Fixes for Probabilistic Fairness (#27)
* Add test for get_all_scores * Bug fix. EqualOpportunity should be included in get_all_scores. * Small updates to test_utils_proba.py * Rearrange simulation into its own class. * Simulator is its own class. Simulator unit tests running clean. * Small edits to test_utils_proba.py * Fix small bug that occurs in summarizer when mambership_df has a surrogate column not named 'surrogate'. Update unit tests to fix error. * Add tests for summarizer. * Cleanup code after merging changes to fix summarizer bug. * run_bootstrap was using incorrect class label function call. * Clean up print statements in is_one_dimensional. * Clean up deprecation warning caused by cvx.Variable returning a one-dimensional numpy array in EqualizedOdds bias mitigation. Convert to float when necessary. * Turn off user warnings where possible in test_utils_proba.py. Warnings will still print during unit tests because higher-level API will not have the option to turn warnings off. This keeps the API cleaner. * Update to utils_proba.py * Edit comments in simulator. * Update minimum weight to 5 rows, according to results from simulation experiment with min counts per surrogate. * Make simulation dataframe large enough so values are not unstable and unit tests do not fail. * Add simulation scripts and readme.md for probabilistic fairness. * Update comments and readme.md * Add descriptions and citations to readme * Add input data for simulations and supporting notebooks to create output charts from results. * update * update * update * update --------- Co-authored-by: mfthielb <[email protected]> Co-authored-by: skadio <[email protected]>
- Loading branch information
1 parent
fa968bc
commit 87026e1
Showing
5 changed files
with
286 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.