Plan with a repertoire and update its transition model from live observations.
More...
|
| | 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.
|
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.
| 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.