GithubHelp home page GithubHelp logo

npucb's Introduction

Pytorch Implementation of UCB Algorithm with Neural Processes (NP-UCB) for Contextual Bandits

This repository contains the codes for my master thesis paper, "Empirical Study on Contextual Bandit Algorithms with Neural Processes". All the works are done when I am a graduate student of Graduate School of Artificial Intelligence (AIGS), Ulsan National Institue of Science and Technology (UNIST), and a member of Learning Intelligence Machine Laboratory (LIM Lab).

ContextualBandits/ contains the wheel bandit experiment, while R6NewsRecommendation/ contains news recommendation experiment. Each experiment needs two configuration files. One of them sets the default configuration for a group of experiments, while the other overrides the default configuration to apply different conditions for each experiments in a same group. script/train/example/ and script/eval/example/ contains example experiments for training and evaluation, respectively. script/official contains all the experiments reported in my thesis.

In detail, script/official/{experiment_group}/ contains default.yaml and exp_config/{experiment_name}.yaml.

At ContextualBandits/ or R6NewsRecommendation/, run experiment with

python main.py \
--project {project_name_for_logging_wandb} \
--task {train_or_eval} \
--default_config script/official/{experiment_group}/default.yaml \
--exp_config script/official/{experiment_group}/exp_config/{experiment_name}.yaml \
{--any_other_args...}

If you want to override some of the configurations when running the code, give them as arguments.

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.