| name | ptgp-vfe |
| description | Diagnose and fix VFE (Titsias collapsed-bound) sparse-GP training failures in ptgp. Use when working with VFE, collapsed ELBO, trace penalty, inducing points, minimize_staged_vfe, sigma collapse, or VFEDiagnostics output. |
ptgp-vfe — VFE training diagnostic skill
Routes an AI coding assistant to the right context when diagnosing a Titsias
collapsed-bound (VFE) sparse-GP run in ptgp. Three branches:
reference/
Background and recipes — read first when the user is setting up a run.
- reference/workflow.md — five-tier escalation
ladder (smoke test → frozen-Z → trainable-Z → staged → modelling
change). Start here for "how should I train this?".
- reference/interpretation.md — what each
field of
VFEDiagnostics and GreedyVarianceDiagnostics means.
Healthy ranges, suspicious values, which pitfall to open.
- reference/choosing_M.md — picking the number
of inducing points before training.
- reference/discrete_inputs.md — handling
categorical / integer-coded columns in the kernel and inducing layout.
- reference/api.md — concise call-site reference for
the ptgp functions the skill references.
pitfalls/
One file per failure mode. Open the relevant slug when symptoms match.
Each file follows the same schema: Detection / Diagnosis / Fix / See also.
scripts/
CLI tools. Each runs from a saved pickle of training output.
- scripts/check_inducing.py — pre-fit health
check on a
GreedyVarianceDiagnostics pickle. Prints the repr plus
per-kuu_* verdicts, writes the canonical 3-panel inducing PNG.
- scripts/plot_history.py — read
(history, phase_labels) pickle; write the canonical 6-panel history PNG.
- scripts/detect_collapse.py — read same
pickle; run every pitfall's detection rule; print a sorted Verdict
table.