Basic Usage

Installation

pip install -r requirements.txt

Measuring Model Disparity

To use measure_disparity.py, you must first create a pandas DataFrame containing outputs from your model on a set of observations, the true labels, and a variable number of demographic columns. You can then run the following from the command line:

python measure_disparity.py --dataset your_dataset.csv

See the Demo: Measuring Disparity for additional info.

Mitigating Model Disparity

To use mitigate_disparity.py, you must first have a pandas DataFrame containing observations, the true labels, and a variable number of demographic columns. You can then run the following from the command line:

python mitigate_disparity.py --dataset your_dataset.csv

See the Demo: Mitigating Disparity for additional info.