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
apt_posterior_transformationCompute APT posterior-to-proposal-posterior transformations for Gaussian and finite normalized density settings without importance weighting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a recovery or implementation needs the central APT transformation from a true-posterior estimator q(theta | x) to the proposal-posterior density used for proposal-drawn training data. Do not use it for SNPE-B-style importance weighting or SNPE-A-style post-hoc posterior correction.
q(theta | x) * proposal(theta) / prior(theta).log_q + log_proposal - log_prior.posterior_precision + proposal_precision - prior_precision.Run:
python tests/test_transformation.py
The tests compare Gaussian closed form against finite-grid normalization and check numerical stability. They also assert that invalid Gaussian precision is reported rather than converted into a nonsensical variance.