Skip to content
Back to skills

Median Proximity Coreset

ASecurity

Select Moderate-DS coresets by keeping examples whose scalar scores are closest to the score median.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Median Proximity Coreset?

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

Security grade badge for Median Proximity Coreset
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-median-proximity-coreset/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-median-proximity-coreset)

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

SKILL.md
---
name: median_proximity_coreset
description: Select Moderate-DS coresets by keeping examples whose scalar scores are closest to the score median.
---

# Median Proximity Coreset

Use this skill after scores have been computed for candidate examples. It implements the paper's moderate coreset rule: sort by closeness to the score median rather than selecting the smallest or largest scores. Do not use this skill to compute representation scores or to claim downstream performance.

## Inputs
- A list of score records containing `id` and numeric `score`.
- Either an integer `size` or a ratio convertible to a target size by the caller.

## Outputs
- Selected ids.
- The median score.
- Ranked proximity diagnostics with deterministic tie-breaking.

## Workflow
1. Validate all scores and requested size.
2. Compute the conventional median of all scores.
3. Rank records by absolute distance to the median, then by score and id for deterministic ties.
4. Return exactly the requested number of selected ids.

## Validation
Run `python scripts/select_median_coreset.py --self-test`. Tests include even medians, stable ties, and invalid sizes.

## Limitations
The skill operates on scalar scores only. A future run should combine it with a scoring skill and an evaluation skill for complete Moderate-DS recovery.

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.