Giter Site home page Giter Site logo

l2l-scrm's Introduction

Sequential Counterfactual Risk Minimization

This repository contains the code for reproducing experiments of the paper Sequential Counterfactual Risk Minimization submitted at ICML.

Prerequisites

Software:

pip install -U -r requirements.txt

Download discrete datasets from the LibSVM website:

BASEURL="https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multilabel"
wget $BASEURL/yeast_test.svm.bz2
wget $BASEURL/yeast_train.svm.bz2
wget $BASEURL/scene_test.bz2
wget $BASEURL/scene_train.bz2
wget $BASEURL/tmc2007_test.svm.bz2
wget $BASEURL/tmc2007_train.svm.bz2

bunzip2 *bz2

Instructions

Discrete Experiments

bash generate_figures_and_tables.sh

Continuous Experiments

Go into the continuoussub folder and run the following.

Figure 1: run the Jupyter notebook in continuous/

gaussian_example.ipynb

Figure 2 SCRM vs CRM, continuous datasets

python continuous/scrm_vs_crm.py

Table 1 SCRM vs CRM, example 3.1

python continuous/gaussian_example.py

Table 3 SCRM vs baselines, continuous datasets

python continuous/scrm_vs_baselines_counterfactual.py
python continuous/scrm_vs_baselines_sbpe.py
python continuous/scrm_vs_baselines_bkucb.py
python continuous/scrm_vs_rl.py

Figure 3,10: run the Jupyter notebook

compare_estimators.ipynb

Figure 4: run the Jupyter notebook in continuous/

distance_scrm_gaussian_example.ipynb

Batch bandits Baselines

Discrete datasets

python batch_bandits_experiments.py

Continuous datasets

python continuous/scrm_vs_baselines_sbpe.py
python continuous/scrm_vs_baselines_bkucb.py

RL Baselines

Discrete datasets

python compare_rl_scrm.py scene,yeast,tmc2007

Continuous datasets

python continuous/scrm_vs_rl.py

Figure 8: run the Jupyter notebook in continuous/

holderian_error_bound_assumption.ipynb

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.