Skip to content

jr-ouyang/CtxBandit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CtxBandit

This repository provides the source code for the paper Bayesian Inference of Contextual Bandit Policies via Empirical Likelihood, published in JMLR.


Repository Structure

examples/        – Notebooks demonstrating how to build and run inference models
experiments/     – Code for reproducing experiments in the paper  
src/ctxbandit/   – Source code of the ctxbandit package
pyproject.toml   – Package configuration and dependency specifications

Installation

Create a new environment and install the package locally:

mamba create -n ctxbandit python=3.12
mamba activate ctxbandit

git clone https://github.com/jr-ouyang/CtxBandit.git
cd CtxBandit
pip install .

All dependencies are installed automatically as specified in pyproject.toml.


Quick Start

To get started, see the Jupyter notebooks in the examples/ directory.

These notebooks demonstrate how to construct inference models for a single policy, joint policies, and policy value differences.


Experiments

The experiments/ directory contains experiments reported in the paper.

The workflow is managed using Snakemake 9.13.3 together with the Snakemake executor plugin for Slurm 1.8.0.

The rules and configurations for Slurm job submission are defined in the Snakefile.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages