计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
linear_reward_successor_features【效率与协作】Compute linear multitask rewards, successor-feature values, and vector Bellman targets for USFA-style reinforcement-learning tasks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation needs the Universal Successor Features contract r_w = phi^T w and Q = psi^T w. Do not use it to choose candidate GPI policies; that belongs to the GPI action-selection skill.
phi: transition feature vector.w: task reward-weight vector.psi: successor-feature vector for (state, action, z).next_psi: bootstrap successor-feature vector, or zeros for terminal transitions.gamma: discount factor.reward = dot(phi, w).q_value = dot(psi, w).target = phi + gamma * next_psi unless terminal.td_error = target - psi.Run:
python tests/test_successor_features.py
This skill assumes observable transition features and linear rewards. It does not learn features from pixels or choose behavior policies.