Skip to content
Back to skills

Sequential Apt Loop

ASecurity

Run a bounded sequential APT proxy loop that updates proposals after corrected atomic training.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Sequential Apt Loop?

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

Security grade badge for Sequential Apt Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sequential-apt-loop/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sequential-apt-loop)

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

SKILL.md
---
name: sequential_apt_loop
description: Run a bounded sequential APT proxy loop that updates proposals after corrected atomic training.
---

# Sequential APT Loop

Use this skill when a recovery needs to demonstrate the sequential part of Automatic Posterior Transformation under a bounded simulator. It should not be represented as full paper reproduction unless the original benchmark and neural density estimator stack are available.

## Inputs
- Observed scalar datum, simulator noise, round count, and simulations per round.
- Prior and initial proposal parameters.
- Atomic training helper implementing proposal-corrected loss.

## Outputs
- Per-round proposal and posterior estimate logs.
- Final posterior mean estimate and absolute error against the analytic Gaussian posterior.
- Training trace with parameter movement and loss values.

## Workflow
1. Begin with the prior as the initial proposal.
2. Generate deterministic low-discrepancy simulator samples around each proposal.
3. Train the atomic score model on accumulated atom sets.
4. Estimate the posterior mean at the observation from corrected atom probabilities.
5. Update the next proposal toward that posterior estimate and repeat.

## Validation
Run `python scripts/sequential_proxy.py --self-test`. The test checks that the final proposal moves toward the analytic posterior and that an optimizer step was executed.

## Limitations
The script uses a one-dimensional Gaussian simulator as a mechanism-faithful proxy, not the paper's full two-moons or SLCP benchmarks.

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…