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

bapps_2afc_protocol

bapps_2afc_protocol

【效率与协作】Evaluate BAPPS-style two-alternative forced choice perceptual similarity triplets with auditable per-item predictions.

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

技能说明

GitHub

name: bapps_2afc_protocol description: Evaluate BAPPS-style two-alternative forced choice perceptual similarity triplets with auditable per-item predictions.

BAPPS 2AFC Protocol

Use this skill when evaluating a perceptual distance function on reference, p0, p1, and human-choice triplets.

Do not use this skill to compute LPIPS distances internally; it owns the protocol and scoring contract only.

Inputs

  • Triplets with id, ref, p0, p1, and judge fields.
  • A distance provider that returns d0 = distance(ref, p0) and d1 = distance(ref, p1), or precomputed d0 and d1 values.
  • Labels where judge = 0 means p0 is closer and judge = 1 means p1 is closer.

Outputs

  • Aggregate 2afc_accuracy.
  • Per-item predictions, distances, labels, and correctness.

Workflow

  1. Validate every triplet label.
  2. Compute or consume d0 and d1.
  3. Predict 1 when d1 < d0; otherwise predict 0.
  4. Average correctness over items.
  5. Save per-item records for recovery analysis.

Validation

Run:

python scripts/evaluate_2afc.py --self-test
python tests/test_evaluate_2afc.py

Limitations

Ties default to prediction 0 for deterministic scoring. If a benchmark specifies probabilistic tie handling, record that deviation outside this skill.

我的收藏