policies-and-customization
Customize Stable-Baselines3 policies, feature extractors, Dict-observation policies, exploration noise, gSDE, and HER replay buffers safely.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- policies-and-customization
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Customize Stable-Baselines3 policies, feature extractors, Dict-observation policies, exploration noise, gSDE, and HER replay buffers safely.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/feature-extractors.md5.8 KB
- 参考文档references/her-and-replay-buffers.md3.8 KB
- 参考文档references/noise-and-exploration.md3.4 KB
- 参考文档references/policy-customization.md5.0 KB
- 参考文档references/troubleshooting.md4.2 KB
03 SKILL.md 正文
Policies and Customization
Use this sub-skill when an SB3 task involves policy_kwargs, policy aliases, custom PyTorch policy modules, BaseFeaturesExtractor, MultiInputPolicy, action noise, generalized State-Dependent Exploration (gSDE), or HerReplayBuffer.
Routes
- For
net_arch,activation_fn, policy aliases, optimizer kwargs, and policy save/load persistence, read policy-customization. - For custom
BaseFeaturesExtractor, image preprocessing,CombinedExtractor,MultiInputPolicy, and Dict observations, read feature-extractors. - For
NormalActionNoise,OrnsteinUhlenbeckActionNoise, vectorized noise, and gSDE constraints, read noise-and-exploration. - For Hindsight Experience Replay setup, goal-env requirements, and the legacy
HER()import error, read her-and-replay-buffers. - For common failures and fast diagnosis checklists, read troubleshooting.
Safe Inspection
Run the bundled script to instantiate a tiny model without learning and print the resolved policy, spaces, device, and architecture summary:
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm PPO --policy MlpPolicy
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm DQN --policy MultiInputPolicy --dict-env
python sub-skills/policies-and-customization/scripts/inspect_policy.py --algorithm SAC --policy MlpPolicy --action-noise normal --use-sde
The script uses safe defaults, supports --help, and trains only when --train-steps is explicitly set above zero.
Boundaries
- Use the environment/vectorization sibling for environment checker, wrappers, vector env, and
Dictspace validation beyond policy choice. - Use the training/algorithms sibling for choosing PPO vs DQN vs SAC/TD3/DDPG and algorithm-specific learning schedules.
- Use the evaluation/persistence sibling for evaluation loops and save/load workflows; this sub-skill only notes policy customization persistence and custom-object pitfalls.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.