| 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 84 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 87 of file karmedbandit.h. |
Here is the call graph for this function:

|
|
returns the next choice, [0:k-1]
Definition at line 94 of file karmedbandit.h. References karmedbanditExp3::decide(), exp3, G, karmedbanditExp3::getGamma(), karmedbanditExp3::getK(), gr, last, and restart(). |
Here is the call graph for this function:

|
|
restarts exp3
Definition at line 113 of file karmedbandit.h. References exp3, karmedbanditExp3::getK(), gr, r, and karmedbanditExp3::setGamma(). |
Here is the call graph for this function:

|
|
call this if you want to reward (r==true) or penalize (r==false) the previous decision
Definition at line 106 of file karmedbandit.h. References exp3, G, last, and karmedbanditExp3::reward(). |
Here is the call graph for this function:

|
|
runs exp3 within this
Definition at line 127 of file karmedbandit.h. |
|
|
the G-hat's
Definition at line 126 of file karmedbandit.h. |
|
|
the gamma_r parameter
Definition at line 124 of file karmedbandit.h. |
|
|
the last choice
Definition at line 125 of file karmedbandit.h. |
|
|
the number of restarts
Definition at line 123 of file karmedbandit.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:56:19 2003 by Doxygen 1.3.4 |