计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
modeling-primitives【效率与协作】Use ZhuSuan's distributions, BayesianNet, MetaBayesianNet, and stochastic tensor primitives to build and inspect probabilistic models.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about ZhuSuan's core probabilistic-modeling surface rather than a specific inference algorithm.
BayesianNet, MetaBayesianNet, StochasticTensor,
meta_bayesian_net, reuse_variables, cond_log_prob, log_joint,
query, or getgroup_ndims, n_samples, or shape semanticszhusuan.distributions and the BayesianNet.<distribution> helpersBayesianNet, StochasticTensor, MetaBayesianNet, and
meta_bayesian_netlog_jointget, query, cond_log_prob, and log_jointreferences/modeling-concepts.md for the modeling rules and shape
semantics.references/api-reference.md when you need exact constructor or method
signatures.references/troubleshooting.md for dtype, shape, and deprecation
issues.scripts/core_smoke.py after environment setup to confirm the core
package can build a tiny model and evaluate an ELBO.BayesianNet.normal,
bernoulli, categorical, dirichlet, or multivariate_normal_cholesky.bn.deterministic(...) when you want the node name tracked.@zs.meta_bayesian_net(scope=..., reuse_variables=True)
when repeated observation patterns should share TensorFlow variables.model.observe(...) to instantiate a concrete BayesianNet with a
specific observation map.bn.get(...) to fetch nodes by name.bn.cond_log_prob(...) to inspect per-node conditional log probabilities.bn.log_joint() for the overall joint log probability.bn.query(..., outputs=True, local_log_prob=True) only when maintaining
older code that still expects the deprecated tuple return.zhusuan/framework/bn.pyzhusuan/framework/meta_bn.pyzhusuan/distributions/base.pyzhusuan/distributions/univariate.pyzhusuan/distributions/multivariate.pyscripts/core_smoke.pyvariational-inference.mcmc-and-sampling.