计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
trajectory_return_replay【效率与协作】Build Self-Imitation Learning replay records by converting completed agent episodes into discounted state-action-return tuples.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing or validating Self-Imitation Learning data flow from the paper "Self-Imitation Learning". It is appropriate for full RL runs and reduced proxy recoveries that need auditable replay records from the agent's own completed trajectories.
Do not use this skill for expert demonstration replay, one-step TD replay, or offline data whose episode returns cannot be reconstructed.
state, action, reward, and optional done.gamma in [0, 1].state, action, discounted return, reward, and index.Run:
python tests/test_trajectory_return_replay.py
The test checks sparse-reward return computation, terminal handling, and capacity truncation.
A terminal reward must still propagate to earlier non-terminal steps in the same episode; only a terminal boundary before a previous episode resets the backward return accumulator.