langgoap.MCTSExploration#
- class MCTSExploration(iterations=200, wall_clock_ms=200.0, c=1.4142135623730951, rollout_depth=4, seed=0)[source]#
Search budget and exploration knobs for
MCTSStrategy.- Budgets:
iterations: Hard cap on tree iterations per
plan()call. wall_clock_ms: Hard cap on wall-clock per call. Zerodisables the check. Whichever budget trips first ends the search; at least one must be > 0.
- Knobs:
c: UCB1 exploration constant. LATS default √2. rollout_depth: Max simulation horizon per rollout. seed: Base seed for the RNG driving random tie-breaks and
the default
RandomRolloutfallback.
- Parameters:
iterations (int)
wall_clock_ms (float)
c (float)
rollout_depth (int)
seed (int)
- __init__(iterations=200, wall_clock_ms=200.0, c=1.4142135623730951, rollout_depth=4, seed=0)#
- Parameters:
iterations (int)
wall_clock_ms (float)
c (float)
rollout_depth (int)
seed (int)
- Return type:
None
Methods
__init__([iterations, wall_clock_ms, c, ...])Attributes
iterationswall_clock_mscrollout_depthseed