/bandit

Bandit algorithms and test framework in Java

Primary LanguageJavaApache License 2.0Apache-2.0

Bandit Algorithms

Inspired by Bandit Algorithms for Website Optimization I've implemented some bandit algorithms in Java and a test framework to quickly visualize how they behave under different scenarios.

Currently, the algorithms available are: epsilon-Greedy, epsilon-first, Softmax and UCB1.

Test Framework

## How to use the test framework

If you want to change the algorithms or arms used in the test, download the code and configure the test in Main.java

## How to build

You require the following:

  • Latest stable JDK 8
  • Latest stable Apache Maven

Download the code and do mvn clean package. To run the test framework just do java -jar test-framework/target/testframework.jar.