计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
grid-world-dp-and-control【效率与协作】Use and adapt GridWorld dynamic programming, tabular control, Deep SARSA, and REINFORCE workflows distilled from the reinforcement-learning examples.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about the repository's 5x5 GridWorld workflows: policy iteration, value iteration, tabular SARSA, tabular Q-learning, Deep SARSA, or REINFORCE. It is self-contained; do not depend on the original checkout at runtime.
1-policy_iteration.py, 2-value_iteration.py) as provenance workflow labels.3-sarsa.py, 4-q_learning.py) as provenance workflow labels.5-deep_sarsa.py, 6-reinforce.py) as provenance workflow labels.references/algorithm-guide.md for the MDP layout, coordinate conventions, formulas, API-shaped examples, and safe adaptation patterns.references/troubleshooting.md when a grid policy points in the wrong direction, rendering blocks on a server, tabular values do not update, or Torch neural checks fail.python scripts/grid_world_smoke.py --help
python scripts/grid_world_smoke.py
python scripts/grid_world_smoke.py --section dp
python scripts/grid_world_smoke.py --section neural --strict-torch
The smoke script intentionally reimplements tiny fixtures and update steps. It does not import source repository files, open Pygame, train to convergence, or require a display.
[row, col]; drawing helpers usually need (col, row), so swap before rendering arrows or markers.Env-style workflows use state as [col, row] and actions 0=up, 1=down, 2=left, 3=right.DynamicEnv-style workflows also use [col, row], but actions are 0=up, 1=down, 2=right, 3=left; the distilled source agents expose a fifth network output/action that behaves as a no-op in the dynamic environment.render_mode=None rather than opening Pygame loops.