Skip to content
Back to skills

Gaussian Tree Proxy Recovery

ASecurity

Execute a bounded reduced recovery for binary-tree Gaussian BNs using NaMI inverse contracts and a real standard-library optimizer step.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpythonbash

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Gaussian Tree Proxy Recovery?

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

Security grade badge for Gaussian Tree Proxy Recovery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-gaussian-tree-proxy-recovery/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-gaussian-tree-proxy-recovery)

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: gaussian_tree_proxy_recovery
description: Execute a bounded reduced recovery for binary-tree Gaussian BNs using NaMI inverse contracts and a real standard-library optimizer step.
---

# Gaussian Tree Proxy Recovery

Use this skill when full neural amortized-inference recovery is blocked but soft-mode reduced recovery is allowed. It implements a small executable proxy for the paper's binary-tree Gaussian BN experiment.

## Inputs

- Binary-tree depth and seed.
- Ordered inverse factor contracts produced from NaMI inverse parents.
- Runtime handoff showing whether full package/model training is available.
- Recovery output directory.

## Outputs

- Complete synthetic Gaussian-tree samples with latent and observed values.
- A training trace with `loss_before`, `loss_after`, `params_before`, `params_after`, gradients, and optimizer metadata.
- Mechanism checks distinguishing reduced proxy training from full neural training.

## Workflow

1. Generate a deterministic binary-tree Gaussian BN with observed leaves.
2. Draw complete samples from the generative model.
3. Use the supplied factor contracts to construct parent feature vectors for latent factors.
4. Initialize a tiny linear Gaussian student.
5. Compute supervised squared-error loss against the complete latent values.
6. Run one gradient-descent step and verify parameters changed and loss decreased.
7. Save the trace and report metrics.

## Validation

Run:

```bash
python tests/test_proxy.py
```

The tests use only the Python standard library.

## Limitations

This is a declared reduced recovery. It must not be reported as the paper's full Figure 6 reproduction, and it must keep full-training flags false when the runtime lacks the required numerical or neural packages.

Files in this skill

  • SKILL.md1.7 KB
  • scripts/gaussian_tree_proxy.py7.6 KB
  • tests/test_proxy.py1.9 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.