协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
diayn_skill_prior_conditioning【开发与工程】Build fixed-prior latent skill schedules and per-timestep conditioning records for DIAYN-style unsupervised rollouts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery or implementation needs the DIAYN latent skill sampling contract: a fixed categorical prior, one sampled skill per episode, and the same skill used for every timestep in that episode. Do not use it for learned skill priors or task-reward meta-policies.
num_skills: positive integer number of categorical skills.episodes: positive integer rollout episode count.horizon: positive integer timestep count per episode.seed for deterministic sampling.log_prior values.log_prior to DIAYN reward computation as log p(z).Run python scripts/skill_prior.py --num-skills 3 --episodes 3 --horizon 2 --seed 7 for a JSON smoke output. Run python -m pytest tests or the Distiller skill-tree validator with --run-tests for deterministic assertions.
The helper does not train a policy and does not infer a skill prior from data. It intentionally preserves the fixed-prior assumption from DIAYN.