인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

imagenet_c_corruption_metrics

imagenet_c_corruption_metrics

Compute ImageNet-C CE, mCE, relative CE, and relative mCE from clean and corrupted top-1 error tables.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: imagenet_c_corruption_metrics description: Compute ImageNet-C CE, mCE, relative CE, and relative mCE from clean and corrupted top-1 error tables.

ImageNet-C Corruption Metrics

Use this skill when evaluating corruption robustness from top-1 error rates indexed by corruption type and severity. Use it for ImageNet-C or reduced experiments that preserve the same normalization equations. Do not use it for ImageNet-P perturbation stability metrics.

Inputs

  • Model errors: {corruption: {severity: top1_error}}.
  • Baseline errors with the same corruption/severity keys.
  • Model clean top-1 error.
  • Baseline clean top-1 error.
  • Optional scale factor, normally 100.0.

Outputs

  • ce_by_corruption.
  • mce.
  • relative_ce_by_corruption.
  • relative_mce.
  • Validation diagnostics.

Workflow

  1. Validate matching corruption names and five severity levels.
  2. Sum model and baseline errors across severities for each corruption.
  3. Compute CE as scale * model_sum / baseline_sum.
  4. Average CE values to get mCE.
  5. Compute relative CE after subtracting clean error from each severity error.
  6. Average relative CE values to get relative mCE.

Validation

Run:

python tests/test_corruption_metrics.py

Limitations

The script assumes error rates are already computed from predictions and labels. It does not run an image classifier.

저장한 Skills