public class MwtExplorer<T> extends Object
| Constructor and Description |
|---|
MwtExplorer(String appId,
Recorder<T> recorder)
MwtExplorer constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
chooseAction(Explorer<T> explorer,
String uniqueKey,
T context)
Chooses an action by invoking an underlying exploration algorithm.
|
public int chooseAction(Explorer<T> explorer, String uniqueKey, T context)
explorer - An existing exploration algorithm (one of the below) which uses the default policy as a callback.uniqueKey - A unique identifier for the experimental unit. This could be a user id, a session id, etc..context - The context upon which a decision is made. See SimpleContext below for an example.Copyright © 2016. All Rights Reserved.