This module implements all the extension logic for Multi-armed bandit experiments on Flask apps.
| copyright: | 
  | 
|---|---|
| license: | BSD, see LICENSE for more details.  | 
Bases: object
The main flask extension. Sets up all the necessary tracking for the bandit experiments
Bases: exceptions.Exception
Raised when internal state in MAB setup is invalid
Attach a bandit for an experiment
| Parameters: | 
  | 
|---|
Route decorator for registering an impression conveinently
| Parameters: | bandit (string) – The bandit/experiment to register for | 
|---|
Route decorator for rewards.
| Parameters: | 
  | 
|---|
Get an experimental outcome by id. The primary way the implementor interfaces with their experiments.
Suggests arms if not in cookie, using cookie val if present
| Parameters: | 
  | 
|---|---|
| Raises KeyError: | |
in case requested experiment does not exist  | 
|