界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

tsnpe_sir_fallback_sampler

tsnpe_sir_fallback_sampler

【效率与协作】Run deterministic sampling-importance-resampling diagnostics for narrow TSNPE proposals.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: tsnpe_sir_fallback_sampler description: Run deterministic sampling-importance-resampling diagnostics for narrow TSNPE proposals.

Tsnpe Sir Fallback Sampler

Use this skill when rejection sampling from the truncated proposal is too inefficient and a fixed candidate budget is needed. It computes normalized importance weights from log prior minus log posterior proposal values, seeded systematic resampling indices, and effective sample size. Do not treat SIR as valid if all weights collapse or ESS is not recorded.

Inputs: JSON with candidate_samples, log_prior, log_proposal, num_samples, and optional seed. Outputs: JSON with selected samples, normalized weights, ESS, and mechanism checks. Validation: run python tests/test_sir.py.

我的收藏