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

c2st_metric_evaluation

c2st_metric_evaluation

【效率与协作】Compute a deterministic classifier two-sample accuracy proxy for comparing posterior sample distributions.

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

技能说明

GitHub

name: c2st_metric_evaluation description: Compute a deterministic classifier two-sample accuracy proxy for comparing posterior sample distributions.

C2ST Metric Evaluation

Use this skill when a recovery experiment must compare reference posterior samples and approximate posterior samples with a C2ST-style distributional metric. The score is an accuracy where 0.5 indicates indistinguishable distributions.

Inputs

  • Sample JSON containing reference_samples and approximate_samples.
  • Optional threshold and seed.

Outputs

  • Metric JSON with c2st_accuracy, mean-distance diagnostics, and pass/fail flag.

Workflow

  1. Validate non-empty sample matrices with equal dimensions.
  2. Z-score both groups using reference-sample statistics.
  3. Build a deterministic linear-threshold classifier from the difference of group means.
  4. Report balanced classification accuracy and whether it is near the reference target.

Validation

Run the included tests or validate the tree with validate_skill_tree.py --run-tests.

Limitations

This script is a lightweight deterministic proxy for bounded recovery; the paper used an MLP classifier with cross-validation for full benchmark results.

我的收藏