Skip to content
Back to skills

Sbi Neural Inference Family Selector

ASecurity

Select SNPE, SNLE, or SNRE for a simulation-based inference task from estimator and posterior-access requirements.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Sbi Neural Inference Family Selector?

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

Security grade badge for Sbi Neural Inference Family Selector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sbi-neural-inference-family-selector/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sbi-neural-inference-family-selector)

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

SKILL.md
---
name: sbi_neural_inference_family_selector
description: Select SNPE, SNLE, or SNRE for a simulation-based inference task from estimator and posterior-access requirements.
---

# SBI Neural Inference Family Selector

Use this skill when deciding which neural SBI family best matches a simulator-based inference problem.

Do not use it to run training; it only emits a family recommendation and constraints.

## Inputs
- Desired estimator target: posterior, likelihood, or ratio.
- Whether direct amortized posterior sampling is needed.
- Whether MCMC posterior sampling is acceptable.
- Whether density evaluation is required.

## Outputs
- Recommended family: `SNPE`, `SNLE`, or `SNRE`.
- Objective description.
- Posterior construction requirements and limitations.

## Workflow
1. Prefer `SNPE` when the task needs direct conditional posterior estimation and amortized posterior sampling.
2. Prefer `SNLE` when the task needs learned likelihoods and can use MCMC for posterior sampling.
3. Prefer `SNRE` when density-ratio classification is appropriate and MCMC is acceptable.
4. Reject incompatible requests instead of overstating a family capability.

## Validation
Run:

```bash
python scripts/select_family.py --target posterior --direct-sampling
python tests/test_select_family.py
```

## Limitations
- SNRE estimates ratios, not direct likelihood values.
- Posterior density evaluation depends on the chosen posterior implementation.

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…