Skip to content
Back to skills

Particle Mirror Descent Mixture Protocol

ASecurity

Use this skill to construct the synthetic tied Gaussian mixture posterior target from the Particle Mirror Descent paper, including data generation, log prior/likelihood functions, and grid posterior evaluation.

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

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 particle_mirror_descent_mixture_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Particle Mirror Descent Mixture Protocol?

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

Security grade badge for Particle Mirror Descent Mixture Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-particle-mirror-descent-mixture-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-particle-mirror-descent-mixture-protocol)

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: particle_mirror_descent_mixture_protocol
description: Use this skill to construct the synthetic tied Gaussian mixture posterior target from the Particle Mirror Descent paper, including data generation, log prior/likelihood functions, and grid posterior evaluation.
---

# Synthetic Mixture Model Protocol

## When To Use

Use this skill when a recovery or experiment needs the paper's synthetic multimodal Bayesian target. Do not use it to run PMD updates or score a completed density estimate.

## Inputs

- Random seed and observation count.
- Optional model constants: `theta_true=(1,-2)`, `sigma1=1`, `sigma2=1`, `sigma_x=2.5`, `mix_prob=0.5`.
- Optional grid bounds for posterior evaluation.

## Outputs

- Generated observations and provenance metadata.
- Stable `log_prior`, `log_likelihood`, and dataset log posterior functions.
- Normalized target posterior density on a two-dimensional grid.
- Expected symmetric mode locations.

## Workflow

1. Generate observations from the tied two-component Gaussian mixture described in Section 6.
2. Evaluate likelihoods with log-sum-exp to avoid underflow.
3. Combine independent Gaussian priors and the full-data likelihood into an unnormalized posterior.
4. Normalize grid posterior arrays before downstream metric computation.
5. Save generated data provenance when used in recovery.

## Validation

Run:

```bash
python tests/test_mixture_protocol.py
```

## Limitations

This skill provides a reduced synthetic protocol, not the paper's full repeated 1000-sample comparison against all baselines.

Files in this skill

  • SKILL.md1.5 KB
  • scripts/mixture_protocol.py3.6 KB
  • tests/test_mixture_protocol.py816 B

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.