Code Monkey home page Code Monkey logo

dynamic-fairness's Introduction

Controlling Fairness and Bias in Dynamic Learning-to-Rank

In this repository, we have uploaded the code corresponding to the SIGIR2020 Paper "Controlling Fairness and Bias in Dynamic Learning-to-Rank", which is also on arxiv (https://arxiv.org/abs/2005.14713).

The Paper contains 10 Figures corresponding to 10 different experiments. You can reproduce all of them from the command line.

To start Experiment 1, call
python main.py with 'EXPERIMENT=1' 'PLOT_PREFIX="plots/Exp1/"'

Experients 1-6 are based on a Real News Dataset. This can be downloaded as a csv file from adfontes media and must be saved in as "InteractiveMediaBiasChart.csv" in the data subfolder.

Experients 7-10 are based on the MovieLens 20M Dataset which must be saved in as "ratings.csv" in the data subfolder.

File Overview:

data_utils.py: For loading and preprocessing the data
Experiments.py: Here we define the functions called for different experiments (like different starting users, different user populations, etc.)
Documents.py: Just the classes for our Items (Movie, News article)
relevance_network.py: The neural network for the personalized ranking
Simulation.py : Here is the simulation happening, incl. Ranking Function, Click_Model, ...

Jupyter Notebook

To get started, take a look at the Jupyter Notebook "Example.ipynb". Here you can run a single trial for all our Ranking-Methods on both the News and the Movie Dataset

dynamic-fairness's People

Contributors

dependabot[bot] avatar marcomorik 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.