GithubHelp home page GithubHelp logo

cb_bakeoff's Introduction

Contextual Bandit Bake-Off

Scripts for evaluation of contextual bandit algorithms in Vowpal Wabbit. The precise branch of VW used in the experiments is available here. See the following paper for details:

A. Bietti, A. Agarwal, and J. Lanford. A Contextual Bandit Bake-Off. arXiv preprint, 2018.

Example usage

For making VW datasets, see oml_to_vw.py (for multiclass), multilabel_to_vw.py (for multilabel), make_full.py/full_to_ldf.py (for learning-to-rank). Note that these require different VW options for simulating bandit feedback (--cbify <num_actions> for multiclass, --cbify <num_actions> --cbify_cs for multilabel/cost-sensitive, --cbify_ldf for datasets with label-dependent-features)

Here is an example bash script for running 100 jobs on multiclass datasets with -1/0 encoding:

name='resultsneg10'
for i in `seq 0 99`; do  # these should be run on different cores/machines with your own parallelization mechanism
  python2 run_vw_job.py $i 100 --name ${name} --flags '--loss0 -1 --loss1 0';
done;

cb_bakeoff's People

Contributors

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