Skip to content
Back to skills

Imagenetv2 Selection Frequency Sampling

ASecurity

Sample class-balanced ImageNetV2 proxy datasets using MatchedFrequency, Threshold0.7, or TopImages selection-frequency strategies.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Imagenetv2 Selection Frequency Sampling?

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

Security grade badge for Imagenetv2 Selection Frequency Sampling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-imagenetv2-selection-frequency-sampling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-imagenetv2-selection-frequency-sampling)

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

SKILL.md
---
name: imagenetv2_selection_frequency_sampling
description: Sample class-balanced ImageNetV2 proxy datasets using MatchedFrequency, Threshold0.7, or TopImages selection-frequency strategies.
---

# ImageNetV2 Selection Frequency Sampling

Use this skill after candidate records have been validated. It implements the paper's key sampling ablation: final ImageNetV2 variants differ by how candidate MTurk selection frequencies are used.

## Inputs
- Normalized candidate JSON from `imagenetv2_candidate_pool_schema` or an equivalent list.
- Strategy: `matched_frequency`, `threshold_0_7`, or `top_images`.
- Per-class sample count.

## Outputs
- Sampled records.
- Strategy statistics including class coverage and average selection frequency.

## Workflow
1. Group candidates by class.
2. For `top_images`, choose highest selection frequencies with id tie-breaks.
3. For `threshold_0_7`, filter to frequency at least 0.7, then choose highest frequencies.
4. For `matched_frequency`, sort by distance to target frequency bins derived from the class pool quantiles.
5. Emit deterministic samples and warnings for underfilled classes.

## Validation
Run `python scripts/sample_by_frequency.py tests/fixtures/normalized.json --strategy top_images --per-class 1 --output /tmp/sample.json`.

## Limitations
This skill samples metadata records; it does not fetch images or collect MTurk annotations.

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…