UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
生産性・共同作業 · SKILL.md

imagenet_p_perturbation_metrics

imagenet_p_perturbation_metrics

Compute ImageNet-P-style prediction flip probability over ordered perturbation sequences.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

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.

保存したスキル