Skip to content

johanlaursen/open-fairprune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

161 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-fairprune

An open implementation of FairPrune, a method for pruning parameters as to increase the fairness between two groups

Install

Run the install.bat script. For Linux, examine the script and run the equivalent commands. This creates a venv folder, which you should use to run the files.

You'll get 2 additional commands

  • train-prune --help (Train a model, possibly using --fairness LAMBDA_VALUE)
  • mlflow ui (Run in the data folder)

Applying fairprune

Examine the main section in fairprune.py, and modify hyperparameters, model loading etc. to your needs.

Running our models

The data directory already contains some runs. Upon loading these, you'll get an error stating it cannot find the path C/USERNAME. You therefore need to change the artifact_uri

Running our plots

Run the eval_model.py

Running shap

Examine and run the shap_explainer.py (takes a while)

Data analysis

Preliminary numerical data analysis

See explore_dataset.ipynb

Preliminary distributional plots

See data_exploration.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors