|
resetPosition()
Define the dynamics of how the location of the tiger is reset if
either door is opened |
source code
|
|
|
stayPosition()
Define the dynamics of how the location of the tiger stays the same |
source code
|
|
|
openSame(side)
Define the payoff when opening the same door |
source code
|
|
|
openDifferent()
Define the payoff when opening different doors |
source code
|
|
|
listen()
Define the payoff when both listen |
source code
|
|
|
openListen(side)
Define the payoff when one opens and the other listens |
source code
|
|
|
openObs()
Define the observations when opening a door |
source code
|
|
|
listenObs()
Define the observations when listening |
source code
|
|
|
|
|
exhaustive(scenario,
transition,
observations,
reward,
policyHorizon,
lookaheadHorizon,
timings) |
source code
|
|
|
|
|
printExhaustivePolicy(agent,
policies,
horizon,
beliefs=None) |
source code
|
|
|
|
|
mergeAction(policy,
value,
option,
comparisons=None,
conditions=[ ] ) |
source code
|
|
|
|
|
printObsPolicy(agent,
horizon,
beliefs=None,
observations=None) |
source code
|
|
|
EV(scenario,
transition,
observations,
reward,
horizon,
debug=False,
behaviors=None)
Computes the EV of a set of policies through exhaustive simulation |
source code
|
|
|
simulate(scenario,
current,
transition,
observations,
reward,
horizon,
debug=False,
behaviors=None) |
source code
|
|
|
|
|
RIGHT = 1.0
|
|
LEFT = 0.0
|
|
LISTENCOST = -1.0
|
|
DAMAGE = -50.0
|
|
PRIZE = 20.0
|
|
rewardDict = {'OpenRightOpenRight': openSame(RIGHT), 'OpenRigh...
|
|
keyList = [ {}, {'feature': 'position', 'entity': 'Tiger'}]
|
|
Omega = { ' left ' : {'type': 'heard left'}, ' right ' : {'type': 'he...
|
|
observationDict = {'OpenRightOpenRight': openObs(), 'OpenRight...
|
|
EMPTY_NAMESPACE = None
|
|
EMPTY_PREFIX = None
|
|
StringTypes = ( <type 'str'>, <type 'unicode'>)
|
|
XMLNS_NAMESPACE = ' http://www.w3.org/2000/xmlns/ '
|
|
tree = <teamwork.math.ProbabilityTree.ProbabilityTree instance...
|