Code Monkey home page Code Monkey logo

codband's Introduction

Code for "When and Whom to Collaborate with in a Changing Environment: A Collaborative Dynamic Bandit Solution"

This repository contains implementation of the proposed algorithm CoDBand, and baseline algorithms for comparison:

  • LinUCB
  • dLinUCB and adTS
  • CLUB and SCLUB
  • oracleLinUCB

For experiments on the synthetic dataset, run:

python Simulation.py --T 3000 --SMIN 500 --SMAX 3000 --n 10 --m 2 --sigma 0.1  # bandit parameters are uniformly sampled from a set of size m
python SimulationDP.py --T 3000 --SMIN 500 --SMAX 3000 --n 10 --m 2 --sigma 0.1  # bandit parameters are generated according to Chinese restaurant process

To experiment with different environment settings, specify parameters:

  • T: number of iterations to run
  • SMIN: minimum length of each stationary period
  • SMAX: maximum length of each stationary period
  • n: number of users
  • m: number of unique parameters shared by users
  • sigma: standard deviation of Gaussian noise in observed reward

Detailed description of how the simulation environment works can be found in Section 5.1 of the paper.

Experiment results can be found in "./SimulationResults/" folder, which contains:

  • "[namelabel]_[startTime].png": plot of accumulated regret over iteration for each algorithm
  • "[namelabel]_AccRegret_[startTime].csv": regret at each iteration for each algorithm
  • "[namelabel]_ParameterEstimation_[startTime].csv": l2 norm between estimated and ground-truth parameter at each iteration for each algorithm
  • "Config_[startTime].json": stores hyper parameters of all algorithms for this experiment

For experiments on realworld dataset, e.g. LastFM, Delicious, MovieLens,

  • First download these publicly available data into Dataset folder
  • Then process the dataset following instructions in Section 5.2 of the paper, which would generate the item feature vector file and the event file. Example scripts for processing data are given in Dataset folder.
  • Run experiments using the provided python script "DeliciousLastFMAndMovieLens.py"

codband's People

Contributors

cyrilli avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

shawnwhale

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.