Git Product home page Git Product logo

fair-best-arm-identification's Introduction

F-BAI

This readme includes the instructions to run the experiments for the paper "Fair Best Arm Identification".

For the full paper (including proofs and additional results), refer to the file in paper/full_paper.pdf

Python and Libraries

To run the code make sure to use Python 3.11. The libraries needed are: Numpy, Cvxpy, Matplotlib, mobile-env, Scipy, tqdm, seaborn, tikzplotlib.

Additional libraries may be needed (including latex to correctly plot the results)

Instructions to generate the data

To run the experiment, simply run the script run_experiment.sh using bash run_experiment.sh in Linux. This script will automatically run the scripts that generate all the data of the experiments. Double check that the data folder includes the data from the synthetic and the scheduler environments. Lastly, the notebook generate_models_env.ipynb shows how the environment for the scheduler is constructed.

Instructions to plot the results

To plot the results in the synthetic model, run the notebook analyse_result_prespecified.ipynb for the pre-specified case, and the notebook analyse_result_thetadep.ipynb in the $\theta$-dependent case.

To plot the results for the scheduler, run the notebook analyse_result_scheduling.ipynb.

To plot the results for the price of fairness, run the notebook scaling_study_bai.ipynb.

All images are saved in the images folder.

Instructions to make the tables

Once you have generated all the data, to make the tables that are in the paper simply run the following two jupyter notebooks:

  1. make_table_synthetic.ipynb
  2. make_table_scheduling.ipynb

fair-best-arm-identification's People

Contributors

rssalessio 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.