Skip to content

hil-se/HumanFairDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Fairness in Human Decisions With Machine Learning Algorithmic Bias

Data (included in the data/ folder)

Function

  • inject_exp_all() function in the src/main.py file runs all experiments with injected bias.
  • one_exp() function in the src/exp.py file has the main pipeline for each experiment.
  • inject_bias() function in the src/exp.py file injects bias to the training data.
  • FairBalance() function in the src/preprocessor.py file balances the class distribution within each demographic group.
  • Metrics class in the src/metrics.py file calculates the metrics of accuracy, f1 score, EOD, and AOD.

Usage

  1. Install dependencies:
pip install -r requirements.txt
  1. Navigate to the source code:
cd src
  1. Generate results in inject_results/
python main.py inject_exp_all

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages