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

value-based-discrete-control

value-based-discrete-control

【效率与协作】Use DRL-Pytorch tabular Q-learning and non-Atari discrete-action value-based algorithms: Q-learning, DQN/DDQN/Dueling DQN, prioritized replay DQN/DDQN, C51, and NoisyNet DQN.

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

技能说明

GitHub

name: value-based-discrete-control description: "Use DRL-Pytorch tabular Q-learning and non-Atari discrete-action value-based algorithms: Q-learning, DQN/DDQN/Dueling DQN, prioritized replay DQN/DDQN, C51, and NoisyNet DQN." disable-model-invocation: true metadata: disco-role: operating license: NO_LICENSE

Value-Based Discrete Control

Use this sub-skill when a task asks for DRL-Pytorch's non-Atari, discrete-action value-based workflows:

  • tabular Q-learning on CliffWalking;
  • DQN, Double DQN, Dueling DQN, and Dueling Double DQN on CartPole or LunarLander;
  • prioritized replay DQN/DDQN, preferring the modern LightPrior implementation unless the user specifically asks for sum-tree PER;
  • categorical/distributional DQN (C51);
  • NoisyNet DQN exploration.

Route elsewhere for Atari NoFrameskip DQN, EnvPool/Actor-Sharer-Learner, PPO, DDPG, TD3, SAC, continuous-action control, MuJoCo, or BipedalWalker workflows.

Operating references

  1. Start with algorithm workflows for algorithm choice, EnvIdex mapping, safe commands, checkpoint naming, play mode, TensorBoard, and optional Box2D caveats.
  2. Use API and CLI reference for distilled classes, functions, flags, local import names, and per-directory caveats.
  3. Use troubleshooting when CUDA defaults, Box2D, working directories, checkpoint names, TensorBoard, Gym/Gymnasium version drift, shapes, or stochastic training cause failures.
  4. Run scripts/smoke_value_based.py for a no-training diagnostic against a user-supplied DRL-Pytorch checkout.

Fast decision table

User requestUse this workflowKey choice
"Q-learning" or "CliffWalking"Tabular Q-learningNo CLI flags; use the QLearningAgent API or bundled smoke.
"DQN/DDQN/Dueling" on CartPole or LunarLanderDQN family--Duel and --Double select vanilla/Dueling/Double variants.
"prioritized replay" or "PER"Prioritized DQN/DDQNPrefer LightPrior Gymnasium 0.2x; use sum-tree only when requested.
"C51" or "distributional DQN"Categorical DQN--DQL toggles Double Q-learning inside C51.
"NoisyNet exploration"NoisyNet DQNNo epsilon flag; exploration comes from NoisyLinear layers.
"Atari Pong/Enduro/NoFrameskip"Not this sub-skillRoute to the Atari/ASL workflow.
我的收藏