计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
mcmc-and-sampling【效率与协作】Use ZhuSuan for HMC, SGLD, PSGLD, SGHMC, SGNHT, annealed importance sampling, and posterior-sampling diagnostics.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about posterior sampling or sampling-based estimation rather than variational training.
HMC, SGLD, PSGLD, SGHMC, SGNHT, AIS, or effective_sample_sizeHMC.sample(...) and the HMC adaptation knobsSGLD, PSGLD, SGHMC, SGNHTAIS for annealed importance sampling over a sequence of temperatureseffective_sample_size diagnostics for chain qualityreferences/mcmc-workflows.md for the sampler map and example matrix.references/api-reference.md for exact constructor and sample
signatures.references/troubleshooting.md for adaptation, acceptance, and chain
shape issues.scripts/mcmc_smoke.py after environment setup to confirm a short HMC
chain, sampler instantiation, and ESS calculation.log_joint function or pass a MetaBayesianNet.Variable objects to hold the latent state.zs.HMC(...) with a small step size and a handful of leapfrog
steps.sample(meta_bn, observed, latent) once per sampler instance.zs.SGLD, zs.SGHMC, or zs.SGNHT when the gradient is minibatch-
based.Variable objects and feed minibatches into the
observed data placeholders.effective_sample_size.zhusuan/hmc.pyzhusuan/sgmcmc.pyzhusuan/evaluation.py for AISzhusuan/diagnostics.pyscripts/mcmc_smoke.pymodeling-primitives.variational-inference.