executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
modeling-primitivesUse ZhuSuan's distributions, BayesianNet, MetaBayesianNet, and stochastic tensor primitives to build and inspect probabilistic models.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.