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

on-policy-discrete

on-policy-discrete

【效率与协作】Guides minimalRL single-process discrete CartPole policy-gradient, actor-critic, PPO, PPO-LSTM, and V-trace policy/value workflows.

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

技能说明

GitHub

name: on-policy-discrete description: "Guides minimalRL single-process discrete CartPole policy-gradient, actor-critic, PPO, PPO-LSTM, and V-trace policy/value workflows." disable-model-invocation: true metadata: disco-role: operating license: MIT

On-Policy Discrete Workflows

Use this sub-skill when a task asks about minimalRL's single-process discrete-action CartPole algorithms: REINFORCE, vanilla actor-critic, discrete PPO, PPO-LSTM, or the policy/value side of V-trace.

Route by task

Do not use this sub-skill for

Quick operating workflow

  1. Identify the algorithm and action space. All workflows here assume CartPole-style observations of length 4 and 2 discrete actions unless you are intentionally porting.

  2. Read the relevant API contract in references/api-reference.md before changing shapes, tuple fields, or update loops.

  3. When porting to another discrete environment, update input dimension, output action count, softmax_dim, reward scaling, and termination handling together; see references/workflows.md.

  4. Run the bundled shape smoke helper before attempting long training:

    python sub-skills/on-policy-discrete/scripts/smoke_on_policy_discrete.py --algorithm all
    
  5. If the failure involves Gym reset/step arity, PyTorch graph reuse, probability zeros, or hidden-state shapes, read references/troubleshooting.md before editing the algorithm.

Bundled runtime files

我的收藏