Git Product home page Git Product logo

copa's Introduction

Counterfactual Plans under Distributional Ambiguity

This repo contains the source-code of the paper: Counterfactual plans under distributional ambiguity.

Experiments

Evaluation of Mahalanobis Correction

This experiment evaluates MahalanobisCrr on different number of used corrections K and perturbation limits \Delta. To run this experiment:

python run_epts.py --ept 1 --datasets german sba student --classifiers lrt -uc --run-id <run-id>

The results will be saved in results/run_<run_id>/ept_1

Evaluation on synthetic dataset

This experiment investigates the impact of degree of distribution shifts on the validity of counterfactual plans. To run this experiment:

python run_epts.py --ept 3 --datasets synthesis --methods dice mahalanobis pgd --classifiers lrt -uc --run-id <run-id>

Results will be saved in results/run_<run_id>/ept_3

Evaluation on real-world datasets

This experiment compares three methods DiCE, MahalanobisCrr, DroDicePGD in the three real world datasets: german, sba, student

  1. First, prepare an underlying classifier and 'future' classifiers and for each dataset:
python run_epts.py --ept pretrain --datasets german german_shift sba sba_shift student student_shift --classifiers lrt --run-id 0
mv results/run_0/ept_pretrain/*.pickle data/pretrain 
  1. Next, run the experiment:
python run_epts.py --ept 2 --classifiers lrt --datasets german sba student --methods dice mahalanobis pgd --run-id <run-id> --num-proc 32
  1. The results will be saved in results/run_<run_id>/ept_2

copa's People

Contributors

ngocbh avatar

Stargazers

Junqi (Jay) Jiang avatar Đặng Xuân Vương avatar  avatar

Watchers

 avatar Viet Anh Nguyen 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.