Skip to content
Back to skills

Frequency Label Mapping

ASecurity

Build deterministic one-to-one target-to-source label mappings from source prediction frequencies.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
ai-agentspythongit

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Frequency Label Mapping?

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

Security grade badge for Frequency Label Mapping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-frequency-label-mapping/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-frequency-label-mapping)

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

SKILL.md
---
name: frequency_label_mapping
description: Build deterministic one-to-one target-to-source label mappings from source prediction frequencies.
---

# Frequency Label Mapping

Use this skill when a visual prompting pipeline must map target classes to source classes using top-1 source prediction frequencies. It implements the FLM lower-level mapping used before prompt training and inside ILM-VP.

## Inputs
- Predictions or logits grouped by target label.
- Ordered target labels and source labels.

## Outputs
- Target-to-source mapping.
- Frequency/count table.
- Audit entries for tie-breaking, duplicate exclusion, and fallbacks.

## Workflow
1. Convert logits to top-1 source labels when needed.
2. Count source labels for each target class.
3. In target-label order, choose the most frequent unused source label.
4. Break ties by supplied source-label order.
5. If no unused source labels remain, emit a duplicate warning.

## Validation
Run `python tests/test_frequency_label_mapping.py` or `validate_skill_tree.py --run-tests`.

## Limitations
FLM optimizes mapping frequency, not semantic quality. Use mapping diagnostics to explain whether selected labels are interpretable.

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.