Skip to content

Experimental code of the paper "Enforcing Fairness via Constraint Injection with FaUCI"

License

Notifications You must be signed in to change notification settings

aequitas-aod/experiment-fauci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaUCI: Fairness Under Constrained Injection

Description

This repo contains the experiments for the paper mentioned in the title.

Requirements

The code is written in Python 3.10.0. To install the required packages, run:

pip install -r requirements.txt

All experiments were run on a MacBook Pro Apple M1 chip with 16GB of RAM.

Organisation

The code is organised as follows:

  • dataset/ contains the dataset used in the experiments along with the code for its loading and preprocessing.
  • fairness/ contains the code for the fairness metrics of our method (FaUCI), cho and jiang methods.
  • analysis/ contains the code for executing and gathering of the results.
  • images/ contains the code to generate images (some of them are included in the paper).
  • configuration.py contains the setup of the experiments.

Concerning Cho and Jiang methods, we used the code provided by the authors of the papers. The code is available at the following links:

Usage

To run the experiments, execute the following command:

python fairness/our/__main__.py

The results will be saved in fairness/our/log folder. Similarly, for cho and jiang methods, run:

python fairness/cho/__main__.py

python fairness/jiang/__main__.py

To analise the results for each method, run:

python analysis/our/__main__.py

python analysis/cho/__main__.py

python analysis/jiang/__main__.py

To generate comparison images, run:

python images/__main__.py

About

Experimental code of the paper "Enforcing Fairness via Constraint Injection with FaUCI"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%