Skip to content
Back to skills

Tsnpe Hpr Truncated Proposal

ASecurity

Compute TSNPE high-posterior-density truncation thresholds and rejection samples from a bounded prior.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Tsnpe Hpr Truncated Proposal?

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

Security grade badge for Tsnpe Hpr Truncated Proposal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-tsnpe-hpr-truncated-proposal/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-tsnpe-hpr-truncated-proposal)

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

SKILL.md
---
name: tsnpe_hpr_truncated_proposal
description: Compute TSNPE high-posterior-density truncation thresholds and rejection samples from a bounded prior.
---

# Tsnpe Hpr Truncated Proposal

Use this skill when implementing or checking the TSNPE proposal update: estimate the epsilon HPR threshold from posterior log probabilities at the observation, then accept only prior samples whose posterior log probability is above that threshold. Do not use it for APT/SNPE-C atomic-loss corrections.

Inputs: a JSON file with `posterior_log_probs`, `prior_samples`, `prior_log_probs_for_samples`, `epsilon`, and optional `min_acceptance_rate`. Outputs: JSON containing `threshold`, `accepted_indices`, `accepted_samples`, `acceptance_rate`, and `mechanism_checks`.

Workflow: validate finite numeric arrays; compute the epsilon quantile threshold; build the support mask; fail if no samples are accepted; record whether the proposal is prior-proportional inside support. Validation: run `python tests/test_hpr.py`.

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.