GithubHelp home page GithubHelp logo

isabella232 / pots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring-epfl/pots

0.0 0.0 0.0 51.97 MB

Protective optimization technologies: case studies

Home Page: https://arxiv.org/abs/1806.02711

License: MIT License

Python 4.54% Jupyter Notebook 95.46%

pots's Introduction

Protective optimization techonologies: case studies

This is the accompanying code to the paper "POTS: Protective Optimization Technologies".

It contains code for the two case studies in the latest version of the paper:

  • Poisoning a credit-scoring model.
  • Changine speed limits in a town to avoid Waze routing through it.

One POT in this repo that did not make into the paper:

  • Evasion/"gaming" of the credit-scoring model.

Installation

System packages

On a Debian-based system these packages should have you covered:

apt install python3 python3-matplotlib python3-numpy python3-scipy python3-sklearn

Python

You need to have Python 3.6 or later. To install the packages, run:

pip install -r requirements.txt

Structure

  • scripts --- a script for running the poisoning credit-scoring experiments, and the traffic routing POT.
  • notebooks --- Jupyter notebooks for evasion and poisoning credit scoring experiments
  • src --- common utilities and tools.
  • images --- after running, the notebooks and scripts save plots here
  • out --- the scripts saves simulation data here
  • data --- German credit risk dataset

Running the poisoning experiments

PYTHONPATH=. python scripts/credit_poisoning.py

The experiments for evasion run fast, hence they are directly in the corresponding notebook.

Running the traffic routing experiments

Check the instructions here:

PYTHONPATH=. python scripts/anti_waze.py --help

Example run:

PYTHONPATH=. python scripts/anti_waze.py --town leonia run-one-experiment --target_time 5

Running notebooks

jupyter notebook

And choose the notebooks in the notebook folder

Citing

@inproceedings{KulynychOTG20,
  author    = {Bogdan Kulynych and
               Rebekah Overdorf and
               Carmela Troncoso and
               Seda F. G{\"{u}}rses},
  title     = {POTs: Protective Optimization Technologies},
  booktitle = {FAT* '20: Conference on Fairness, Accountability, and Transparency,
               Barcelona, Spain, January 27-30, 2020},
  pages     = {177--188},
  year      = {2020},
  url       = {https://doi.org/10.1145/3351095.3372853},
  doi       = {10.1145/3351095.3372853},
}

pots's People

Contributors

overdorf avatar bogdan-kulynych 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.