协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
distributions-and-shapes【开发与工程】Choose Pyro distributions and debug batch, event, plate, support, and transform shapes.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to choose a pyro.distributions
distribution, reason about sample_shape, batch_shape, event_shape, or
pyro.plate dimensions, add constraints/transforms, or debug log_prob, support,
validation, NaN/Inf, HMM, stable, zero-inflated, mixture, matching, or CUDA shape
issues.
plate dimension placement, .to_event()/Independent,
observation shape checks, trace shape diagnostics, and HMM/zero-inflated shape
recipes, read references/shapes-and-plates.md.log_prob shape, NaNs/Infs, CUDA device
mismatches, SciPy-dependent helper failures, and HMM duration/broadcast
mistakes, read references/troubleshooting.md.Use this sub-skill for requests like:
log_prob() have the wrong shape under plate?";ValueError: invalid log_prob shape, expected value argument...,
components event_shape disagree, or an HMM duration mismatch";constraints, transform_to, biject_to, or TransformedDistribution
safely";pyro.sample, pyro.param, pyro.plate introductions, parameter-store
lifecycle, PyroModule, and observation basics: route to
../modeling-basics/.../svi-and-autoguides/ after this sub-skill has resolved distribution and
shape contracts.../mcmc-and-prediction/ after this sub-skill has
resolved support and transform constraints.config_enumerate, infer_discrete,
TraceEnum_ELBO, and enum dimension allocation: route to
../effect-handlers-and-enumeration/.../contrib-and-domain-workflows/ and treat them as optional unless the active
environment proves support.d.batch_shape, d.event_shape, d.shape(sample_shape), and
d.log_prob(value).shape before proposing a plate or .to_event() fix.validate_args=True for a
single suspect distribution if global validation is uncertain.pyro.plate or deliberately reinterpreted with .to_event().obs to broadcast to
fn.batch_shape + fn.event_shape; obs_mask broadcasts only to
fn.batch_shape.