Code Monkey home page Code Monkey logo

figr's Introduction

Ranking for Individual and Group Fairness Simultaneously (FIGR).

This repository consists of code and datasets for our paper. We extend the code of DELTR and FA*IR to compare our work with these algorithms as baselines.

Requirements

octave-general and octave-parallel

Fair LTR on the ChileSAT dataset

Preprocessing training data

The bashscript in the root folder pre-processes the ChileSAT data with FIGR and FA*IR

preprocess.sh pre-processes the training data.

Model Training

For ChileSAT dataset a bash-script named trainEngineering.sh is available that trains models for all experimental settings and saves them into results/EngineeringStudents/NoSemiPrivate/PROTECTED-ATTRIBUTE/FOLD/EXPERIMENTAL-SETTING/model.m.

Training parameters like learning rate or number of iterations can be changed in listnet-src/globals.m and deltr-src/globals.m.

The parameter \gamma for DELTR is set in a command line argument. The parameter k for FIGR is also set in a command line arguments.

Predictions

For the ChileSAT a bash-script named predictEngineering.sh is available, that uses the previously trained models and testdata to predict rankings. Predictions are stored in the same folder as model.m.

This script also copies the prediction files from the DELTR experiment with Gamma=0 (color-aware LTR) into folders EngineeringStudents/NoSemiPrivate/FA-IR/P-VALUE, EngineeringStudents/NoSemiPrivate/FIGR, EngineeringStudents/NoSemiPrivate/FIGR_PLUS, EngineeringStudents/NoSemiPrivate/FIGR_MINUS and , which are then needed by the post-processing script.

Post-Processing

The root directory contains bash-script for post-processing LTR predictions on ChileSAT test data with FIGR and also FA*IR (Baseline)

postprocess.sh

Directly applying fair post-processing (re-ranking) methods on the German credit risk and the COMPAS recidivism datasets

post-processing the true ranking in the dataset.

This bash-script re-ranks the true rankig using FIGR and also FA*IR (Baseline)

postprocessTrueRanking.sh

Result Evaluation

The bash-script evaluates results on all three datasets.

evaluateResults.sh

figr's People

Contributors

sruthigorantla avatar sruthigorantla1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.