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

imagenet_p_perturbation_metrics

imagenet_p_perturbation_metrics

【效率与协作】Compute ImageNet-P-style prediction flip probability over ordered perturbation sequences.

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

技能说明

GitHub

name: imagenet_p_perturbation_metrics description: Compute ImageNet-P-style prediction flip probability over ordered perturbation sequences.

ImageNet-P Perturbation Metrics

Use this skill when evaluating prediction stability along ordered perturbation trajectories. Do not use it for corruption top-1 error or mCE calculations.

Inputs

  • Prediction sequences grouped by perturbation type, where each sequence has at least two labels.
  • Optional baseline flip probabilities for normalized reporting.

Outputs

  • Flip count and transition count per sequence.
  • Flip probability per perturbation type.
  • Mean flip probability.
  • Optional normalized flip probability.

Workflow

  1. Validate each sequence has at least two predictions.
  2. Count adjacent prediction changes.
  3. Divide flips by adjacent transitions for each group.
  4. Average group flip probabilities.
  5. Preserve per-sequence diagnostics.

Validation

Run:

python tests/test_perturbation_metrics.py

Limitations

This skill measures prediction stability only. It does not decide whether predictions are correct labels.

我的收藏