Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 932 Bytes

players.rdoc

File metadata and controls

28 lines (22 loc) · 932 Bytes

Bandit Players

There are a number of different possible players that each seek to explore/exploit using different methods. Each can be configured in the bandit.yml file in the config directory under your Rails.root.

Epsilon Greedy

The epsilon greedy player selects the best alternative with a probability of 1 - epsilon, and selects uniformly among the other alternatives with a probability of epsilon. You can set the value of epsilon in the config file like this:

production:
  ...
  player: epsilon_greedy
  player_config:
    epsilon: 0.1
  ...

Fixed

This player always selects the first alternative. It will not optimize. There are no config options.

production:
  ...
  player: fixed
  ...

Round Robin

This is included for testing purposes only. It will not optimize. There are no config options.

production:
  ...
  player: round_robin
  ...