界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

training

training

【效率与协作】Configure PPO training runs, resolve log and checkpoint paths, and interpret the repository's environment presets and action-std schedule.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: training description: "Configure PPO training runs, resolve log and checkpoint paths, and interpret the repository's environment presets and action-std schedule." metadata: disco-role: operating disable-model-invocation: true license: MIT

Training

Use this sub-skill when the user wants to start a PPO training run, change the environment preset, understand the log/checkpoint layout, or adjust the continuous-action exploration schedule.

Do not use this sub-skill for pretrained checkpoint evaluation, plotting, or GIF composition. Route those tasks to the sibling sub-skills. Route low-level PPO class behavior to the root API reference.

What this sub-skill owns

  • The native training flow from environment creation through checkpoint and CSV logging.
  • The repository's default training environment and the environment-specific preset values in the pretrained README.
  • The output naming scheme for logs and checkpoints.
  • Continuous-action action_std initialization and decay.
  • The training-specific failure modes that appear when Gym, Roboschool, or Box2D dependencies are missing or mismatched.

Quick workflow

  1. Resolve the training preset before running anything heavy. Use the bundled helper from this sub-skill directory:

    python scripts/training_config_helper.py --list-presets
    python scripts/training_config_helper.py --env-name RoboschoolWalker2d-v1 --create-dirs
    

    The helper is configuration-only by default. It does not import Gym or start a long training loop.

  2. Choose the environment family carefully.

    • Discrete environments use has_continuous_action_space = False and action_std = None.
    • Continuous environments use has_continuous_action_space = True and a starting action_std such as 0.6.
  3. Keep the output layout consistent. The native training pattern writes logs and checkpoints into environment-specific subdirectories so repeated runs do not overwrite one another.

  4. Use the root API reference for PPO internals. The same PPO constructor and RolloutBuffer behavior back both training and evaluation.

Core references

Validation commands

Safe checks for this sub-skill should stay configuration-first unless the environment packages are already installed and the user explicitly wants a long run:

python scripts/training_config_helper.py --help
python scripts/training_config_helper.py --env-name CartPole-v1 --json
python -m py_compile scripts/training_config_helper.py

Do not treat the absence of Gym, Roboschool, or Box2D as a failure of the helper. Those packages are required only for the live training route.

我的收藏