计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
posterior_two_sample_metrics【效率与协作】Compute deterministic posterior two-sample diagnostics including C2ST-style accuracy for SBI benchmark recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when an SBI benchmark recovery needs a lightweight distributional comparison between reference posterior samples and approximate posterior samples. It is meant for bounded runs where sklearn is unavailable but C2ST-style evidence is still needed.
Do not use this skill to reproduce the exact paper MLP C2ST when the full sklearn and benchmark runtime is available. In that case, run the official metric or an equivalent library implementation and record it as the stronger evidence.
c2st_accuracy, c2st_distance_to_ideal, mmd2, counts, dimension, and interpretation.0.5. Interpret this metric by closeness to 0.5, not as either a larger-is-better or lower-is-better score.Run:
python scripts/posterior_two_sample_metrics.py self-test
python tests/test_posterior_two_sample_metrics.py
The C2ST helper uses a deterministic nearest-centroid classifier, not the paper's MLP. It preserves the two-sample testing mechanism and interpretive scale for reduced recovery.