Skip to content

ievred/fairOT-embedding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fairOT-embedding

Code for the AISATS 2021 article : All of the Fairness for Edge Prediction with Optimal Transport.


CONTENT

1. PREAMBLE
2. ABOUT
3. REQUIREMENTS
4. DETAILS
  1. Demo on synthetic graphs
  2. Train node embeddings with Node2Vec 
  3. Evaluate the quality of the node embeddings for the task of edge prediction
  1. PREAMBLE

This work presents the contribution of the article "All of the Fairness for Edge Prediction with Optimal Transport" accepted to AISTATS 2021, where we study the problem of fairness for the task of edge prediction in graphs.

  1. ABOUT and CITATION

This repository contains source code to efficiently repair the adjacency matrix of a graph by aligning the joint distributions of nodes appearing in different sensitive groups; the script also provides a version of the original algorithm with additional individual fairness constraints. It also provides a script to train node embedding with Node2Vec (any other embedding methods could have been used) on the repaired graph and evaluate the impact for the task of edge prediction.

If you use this repository, please cite:

@inproceedings{laclau2021fairGraph,
  title     = {All of the Fairness for Edge Prediction with Optimal Transport},
  author    = {Laclau, Charlotte and Redko, Ievgen and Choudhary, Manvi and Largeron, Christine},
  booktitle = {Proceedings of AISTATS},
  year      = {2021},
  doi       = {10.18653/v1/D17-1024},
  pages     = {254--263},
}
  1. REQUIREMENTS

Required packages can be installed with the following command in your terminal :

pip install -r requirements.txt
  1. DETAILS
  • demo-synthetic.ipynb : reproduce results from the Appendix of the paper.
  • demo-polblogs.py : IN PROGRESS

About

Code for the AISTATS 2021 article : All of the Fairness for Edge Prediction with Optimal Transport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 80.8%
  • Python 19.2%