QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.rte.ResetFreeTrialAndError Class Reference

Plan with a repertoire and update its transition model from live observations. More...

Public Member Functions

 stats (self)
 observe (self, state, skill, successor)
 Update the residual model with one actual state transition.
 plan (self, state, goal, *, traversable=None)
 Plan the next skill from the current state without making a real transition.
 run (self, state, goal, execute, *, max_trials, traversable=None, adapt=True)
 Execute and replan from observed successors, with a hard live trial limit.

Detailed Description

Plan with a repertoire and update its transition model from live observations.

Reset-free Trial-and-Error following Chatzilygeroudis et al.

The first implementation assumes additive, stationary displacements
in fixed numeric state coordinates. A residual GP updates the
nominal skill effects from live outcomes. MCTS uses UCB and
progressive widening for skills and their possible successor states.
The caller supplies the environment and handles execution.

:param repertoire: Nonempty sequence of RTESkill records, live numeric
    repertoire, or its portable grid export. For a grid, each descriptor
    must be the skill's nominal displacement in state coordinates.
:param horizon: Number of skill applications planned per simulated path.
:param simulations: Monte Carlo rollouts per planning call.
:param goal_tolerance: Distance at which the goal is reached.
:param prior_std: Standard deviation of the nominal transition error.
:param observation_noise: Positive observation standard deviation for the GP.
:param length_scale: GP kernel scale in normalized skill coordinates.
:param model_capacity: Number of recent live outcomes retained by the GP.
:param exploration: UCB exploration coefficient for simulated actions.
:param discount: Discount on future distance improvements.
:param collision_penalty: Positive cost of a forbidden simulated transition.
:param seed: Random seed for planning.

Definition at line 76 of file rte.py.

Member Function Documentation

◆ observe()

qdpy.algorithms.rte.ResetFreeTrialAndError.observe ( self,
state,
skill,
successor )

Update the residual model with one actual state transition.

Add a measured displacement from an executed skill to the rolling model dataset.

Definition at line 144 of file rte.py.

◆ plan()

qdpy.algorithms.rte.ResetFreeTrialAndError.plan ( self,
state,
goal,
* ,
traversable = None )

Plan the next skill from the current state without making a real transition.

Return an RTESkill or None if the state is already within goal_tolerance.

traversable, if supplied, tests the whole predicted transition as
(before, after). A blocked result receives the collision cost and ends
that simulated path.

Definition at line 198 of file rte.py.

◆ run()

qdpy.algorithms.rte.ResetFreeTrialAndError.run ( self,
state,
goal,
execute,
* ,
max_trials,
traversable = None,
adapt = True )

Execute and replan from observed successors, with a hard live trial limit.

Return an RTEPath by calling execute(current_state, genome) at most max_trials times.

Definition at line 220 of file rte.py.

◆ stats()

qdpy.algorithms.rte.ResetFreeTrialAndError.stats ( self)
Return the current count of live actions, observations, and simulated paths.

Definition at line 133 of file rte.py.


The documentation for this class was generated from the following file: