GithubHelp home page GithubHelp logo

rnlps's Introduction

Recurrent neural-linear posterior sampling

This software supplements the paper "Recurrent Neural-Linear Posterior Sampling for Non-Stationary Contextual Bandits".

The implementation focuses on clarity and flexibility rather than computational efficiency.

Instructions

Remember to include this repository folder in your PYTHONPATH.

Hyperparameter grid

Create config files for a specific bandit problem instance and the policies to be evaluated:

python3 rnlps/scripts/hgrid.py experiment_folder/

Experiments

Run an individual experiment on a folder with a config file:

python3 rnlps/scripts/run.py experiment_folder/single_trial/

# Try one of the example configurations
python3 rnlps/scripts/run.py rnlps/examples/example_configs/sinusoidal_bernoulli/2/

Run multiple experiments in parallel with 10 jobs (requires tmux):

python3 rnlps/scripts/multirun.py experiment_folder/ 10

Analysis

Create a csv file that summarizes the return (mean and standard deviation over independent runs) for the different policies:

python3 rnlps/scripts/create_summary.py experiment_folder/

Create a plot to analyse the sensitivity of neural policies across hyperparameters:

python3 rnlps/scripts/hp_sensitivity_plot.py experiment_folder/

Create a plot comparing the regret of the different policies:

python3 rnlps/scripts/regret_analysis.py experiment_folder/

Dependencies

  • tmux (for multirun.py)
  • matplotlib
  • numpy(1.16.3)
  • pandas
  • scipy
  • seaborn
  • tensorflow(1.13.1)

rnlps's People

Contributors

aditya-ramesh-10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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