This repo contains two example projects of the CappedIGW algorithm.
The first project is in the demo
directory. This project was made specifically for new users and contains:
- Two demonstration notebooks that make it easy to play with CappedIGW on real world datasets
- Simplified and documented implementations of CappedIGW and Betting Martingale Normalization.
The second project is in the paper
directory. This project contains code to reproduce the results in the published paper. This code is harder to read than the implementations in the demo
directory and also includes a working implementation of the algorithm to adaptively choose
To play with the experiments in the demo
directory follow these steps:
- Download this repo to your local machine
- Make sure you have python installed
- On the command line run
pip install notebook
- On the command line navigate to your download of the repo
- On the command line run
jupyter notebook
- From your web browser open either of the notebook files in
demo
To run the experiments in the paper
directory follow these steps:
- Download this repo to your local machine
- Make sure you have python installed
- On the command line navigate to your download of the repo
- On the command line run
pip -r ./paper/requirements.txt
- On the command line run
python ./paper/run_online.py
- On the command line run
python ./paper/run_offline.py
- Open
plots.ipynb
to create plots from the paper