|
bitsim
Model, simulate, estimate and control robots in C++
|
Functions | |
| read (path) | |
| main () | |
Make a GIF of multi-armed bandit methods learning which arm is best. The bandit examples write pulls.csv: a line "# p,..." with the success probability of every arm, then a row for every pull: method, pull, arm, reward. This script draws, for every method, how often it has pulled every arm so far, with the arm's success probability under it, and its mean reward so far, every --every pulls. Usage: python bandit_gif.py pulls.csv --out bandits.gif [--every 20] Needs matplotlib and imageio.
| bandit_gif.main | ( | ) |
| bandit_gif.read | ( | path | ) |