| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <karmedbandit.h>
Uses algorithms described in: The non-stochastic multi-armed bandit problem Auer, Cesa-Bianchi, Freund, and Schapire October 14, 2002
Definition at line 83 of file karmedbandit.h.
Public Member Functions | |
| karmedbanditExp3_1 (unsigned int k) | |
| constructor, pass the number of arms | |
| unsigned int | decide () |
| returns the next choice, [0:k-1] | |
| void | reward (bool rew) |
| call this if you want to reward (r==true) or penalize (r==false) the previous decision | |
Protected Member Functions | |
| void | restart () |
| restarts exp3 | |
Protected Attributes | |
| unsigned int | r |
| the number of restarts | |
| double | gr |
| the gamma_r parameter | |
| unsigned int | last |
| the last choice | |
| std::vector< double > | G |
| the G-hat's | |
| karmedbanditExp3 | exp3 |
| runs exp3 within this | |
|
|
constructor, pass the number of arms
Definition at line 86 of file karmedbandit.h. |
|
|
returns the next choice, [0:k-1]
Definition at line 93 of file karmedbandit.h. References karmedbanditExp3::decide(), exp3, G, karmedbanditExp3::getGamma(), karmedbanditExp3::getK(), gr, last, and restart(). |
|
|
restarts exp3
Definition at line 112 of file karmedbandit.h. References exp3, karmedbanditExp3::getK(), gr, r, and karmedbanditExp3::setGamma(). |
|
|
call this if you want to reward (r==true) or penalize (r==false) the previous decision
Definition at line 105 of file karmedbandit.h. References exp3, G, last, and karmedbanditExp3::reward(). |
|
|
runs exp3 within this
Definition at line 126 of file karmedbandit.h. |
|
|
the G-hat's
Definition at line 125 of file karmedbandit.h. |
|
|
the gamma_r parameter
Definition at line 123 of file karmedbandit.h. |
|
|
the last choice
Definition at line 124 of file karmedbandit.h. |
|
|
the number of restarts
Definition at line 122 of file karmedbandit.h. |
|
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:00 2003 by Doxygen 1.3.2 |