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

scienceqa_style_evaluation

scienceqa_style_evaluation

【数据与研究】Canonicalize option-only or short-form ScienceQA-style answers and compute deterministic accuracy.

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

技能说明

GitHub

name: scienceqa_style_evaluation description: Canonicalize option-only or short-form ScienceQA-style answers and compute deterministic accuracy.

ScienceQA Style Evaluation

Use this skill when evaluating visual question-answering predictions whose labels are multiple-choice option letters or short spans. It is especially useful for LLaVA-style ScienceQA recovery, where answer formatting can otherwise dominate the metric.

Inputs

  • Prediction records with id, raw_answer, and label.
  • Optional answer choices keyed by option letter.

Outputs

A metrics object with accuracy and per-item canonicalized predictions.

Workflow

  1. Extract an explicit option letter when present.
  2. Otherwise match the answer text against provided choices.
  3. Normalize case and punctuation for short-span labels.
  4. Compute accuracy and retain raw/extracted answers separately.

Validation

Run the included tests or the skill-tree validator with tests enabled.

Limitations

This evaluator is deterministic and local. It does not call GPT-4 for open-ended judging.

我的收藏