public interface Explorer<T>
Policy.chooseAction(T) internally. Do not implement this
interface yourself: instead, use the various exploration algorithms below, which
implement it for you.| Modifier and Type | Method and Description |
|---|---|
DecisionTuple |
chooseAction(long saltedSeed,
T context)
Determines the action to take and the probability with which it was chosen, for a
given context.
|
void |
enableExplore(boolean explore) |
DecisionTuple chooseAction(long saltedSeed, T context)
saltedSeed - A PRG seed based on a unique id information provided by the usercontext - A user-defined context for the decisionvoid enableExplore(boolean explore)
Copyright © 2016. All Rights Reserved.