Skip to content

Commit

Permalink
figure update
Browse files Browse the repository at this point in the history
  • Loading branch information
taochao committed Mar 2, 2021
1 parent c60f991 commit 16c7c60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Install package `https://github.com/Alanthink/banditpylib`.

* Run `worst_regret.sh` to generate 10 random input instances and start simulations
* Move generated files in formats `data_*.out` and `params_*.json` to `arxiv` folder (currently `arxiv` contains all files generated from last time of running)
* Run `python mnl_bandit.py --final` to generate Figure 1 (`worst_regret.pdf`)
* Run `python3 mnl_bandit.py --final` to generate Figure 1 (`worst_regret.pdf`)

## Figure 2

Real parameters are already manipulated and stored in file `real_params.json`. See file `car_data_processing.ipynb` on the code to manipulate original data. Then just run
```
python mnl_bandit.py --cvar_data --cvar_fig \
python3 mnl_bandit.py --cvar_data --cvar_fig \
--horizon=1000000 --freq=1000 --card_limit=100 --trials=40 --processes=40 \
--random_neighbors=10 --percentile=5
```
to generate Figure 2 (`cvar_fig.pdf`).
to generate simulation data (`cvar_data.out`) and Figure 2 (`cvar_fig.pdf`).
Binary file modified cvar_fig.pdf
Binary file not shown.
Binary file modified worst_regret.pdf
Binary file not shown.

0 comments on commit 16c7c60

Please sign in to comment.