bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bandit_gif Namespace Reference

Functions

 read (path)
 main ()

Detailed Description

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.

Function Documentation

◆ main()

bandit_gif.main ( )

◆ read()

bandit_gif.read ( path)