Skip to content
Back to skills

Imagenet P Perturbation Metrics

ASecurity

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

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testingpythonbash

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill imagenet_p_perturbation_metrics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Imagenet P Perturbation Metrics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Imagenet P Perturbation Metrics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-imagenet-p-perturbation-metrics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-imagenet-p-perturbation-metrics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
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:

```bash
python tests/test_perturbation_metrics.py
```

## Limitations

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.