Skip to content
Back to skills

Zhusuan

ASecurity

"Use ZhuSuan for Bayesian networks, variational inference,

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
developmentpythonnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill zhusuan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zhusuan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zhusuan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-zhusuan/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-zhusuan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: zhusuan
description: "Use ZhuSuan for Bayesian networks, variational inference,
  HMC/SG-MCMC sampling, and importance-sampling workflows on TensorFlow 1.x."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# ZhuSuan

ZhuSuan is a TensorFlow 1.x probabilistic-programming library for Bayesian deep
learning. Use this skill when the user asks about `import zhusuan as zs`,
Bayesian networks, latent-variable models, variational objectives, posterior
sampling, or the repo's example workflows.

## Quick start

1. Read `references/overview.md` for the module map and installation note.
2. Read `references/workflows.md` for the example-family map and dataset notes.
3. Read `references/api-reference.md` when you need exact signatures.
4. Read `references/troubleshooting.md` when install, TF1, dtype, or shape
   issues show up.
5. Run `scripts/core_smoke.py` after installing the package if you want a fast
   import-and-objective sanity check.

## Route to a sub-skill

- `sub-skills/modeling-primitives/SKILL.md` for distributions, BayesianNet,
  MetaBayesianNet, observations, deterministic nodes, and node inspection.
- `sub-skills/variational-inference/SKILL.md` for ELBO, IWAE, KLPQ,
  importance-sampling likelihoods, normalizing flows, and VAE/BNN/SVGP-style
  training.
- `sub-skills/mcmc-and-sampling/SKILL.md` for HMC, SGLD, PSGLD, SGHMC, SGNHT,
  AIS, and chain diagnostics.

## What this root skill is for

- Give the fastest route to the right workflow and reference.
- Provide the package-level install, import, and troubleshooting entry point.
- Keep the skill usable after the original checkout disappears.

## What this root skill is not for

- It is not a full API manual; read the relevant reference file instead.
- It is not a training script collection; the example families are summarized in
  `references/workflows.md` and the sub-skills.
- It is not a replacement for the sub-skills; those carry the detailed workflow
  guidance.

## Practical reminders

- ZhuSuan's core API is graph-based and TF1-style. Sessions, placeholders, and
  variable scopes still matter.
- The verified inspection environment used TensorFlow 1.15.5 with SciPy and
  mock on Python 3.6.
- The example families often need external data or optional image helpers, so
  keep them as references unless the user explicitly wants a full run.

Files in this skill

  • SKILL.md2.3 KB
  • references/api-reference.md3 KB
  • references/overview.md1.4 KB
  • references/repo-provenance.md734 B
  • references/repo-routing-metadata.json432 B
  • references/troubleshooting.md2 KB
  • references/workflows.md2.5 KB
  • scripts/core_smoke.py1.2 KB
  • scripts/data_helpers.py1.2 KB
  • scripts/image_grid.py2 KB
  • sub-skills/mcmc-and-sampling/SKILL.md3.1 KB
  • sub-skills/mcmc-and-sampling/references/api-reference.md1.2 KB
  • sub-skills/mcmc-and-sampling/references/mcmc-workflows.md1.6 KB
  • sub-skills/mcmc-and-sampling/references/troubleshooting.md1.4 KB
  • sub-skills/mcmc-and-sampling/scripts/mcmc_smoke.py1.6 KB
  • sub-skills/modeling-primitives/SKILL.md3.5 KB
  • sub-skills/modeling-primitives/references/api-reference.md1.5 KB
  • sub-skills/modeling-primitives/references/modeling-concepts.md2.1 KB
  • sub-skills/modeling-primitives/references/troubleshooting.md1.4 KB
  • sub-skills/modeling-primitives/scripts/core_smoke.py1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.