This package is a possible implementation of the UCB1 selector. This selector can be used for Algorithm selection.
Here it is used with random variables having different distributions and from data in a CSV file.
Here is an example of run with four random variables.
The algorithm developed here is from:
Auer, P., Cesa-Bianchi, N., & Fischer, P. (2002). Finite-time analysis of the multiarmed bandit problem. Machine learning, 47(2-3), 235-256.
This package needs Tkinter. Optional : Matplotlib
Launch the package:
python -m Bandit
In order to use your own csv file, you must format yur csv file as follow:
The first line contains the names of the variable/Algorithm
All the other lines contains the value of the variable/algorithm in the same column.
An example is provided here.
For using this code with any kind of file, you can use your own file reader and then use the MachineList class having a list of the values as argument.
