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

accuracy_pair_protocol

accuracy_pair_protocol

【效率与协作】Validate paired ID/OOD accuracy records before fitting accuracy-on-the-line calibration experiments.

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

技能说明

GitHub

name: accuracy_pair_protocol description: Validate paired ID/OOD accuracy records before fitting accuracy-on-the-line calibration experiments.

Accuracy Pair Protocol

Use this skill when a recovery or benchmark script needs to build the paired in-distribution and out-of-distribution accuracy panel used by Accuracy on the Line. Do not use it to fit the line or decide whether the proxy passes; it only owns record validation and deterministic ordering.

Inputs

  • A JSON list of objects with model_id, id_accuracy, and ood_accuracy.
  • Optional metadata fields such as architecture, training duration, or shift name.

Outputs

  • A JSON object containing validated records, count, id_range, ood_range, and provenance.
  • Validation errors for missing fields, duplicate model ids, nonnumeric accuracies, or values outside [0, 1].

Workflow

  1. Parse records from JSON or receive them as Python dictionaries.
  2. Require one paired ID and OOD accuracy for every model id.
  3. Enforce numeric ranges and unique model ids.
  4. Sort records by model_id so downstream line fitting is reproducible.
  5. Preserve optional metadata without adding predictions or pass/fail decisions.

Validation

Run python scripts/accuracy_pairs.py --input tests/fixtures/valid_pairs.json or validate the tree with the Distiller validate_skill_tree.py --run-tests command.

Limitations

This skill does not download datasets, train models, fit the calibration line, or evaluate a recovery target. Synthetic records must be labeled by the caller as proxy evidence.

我的收藏