Skip to content
Back to skills

Diversity Correspondence Metrics

ASecurity

Compute diversity and correspondence diagnostics for few-shot image generation recovery experiments.

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

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Diversity Correspondence Metrics?

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

Security grade badge for Diversity Correspondence Metrics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-diversity-correspondence-metrics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-diversity-correspondence-metrics)

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

SKILL.md
---
name: diversity_correspondence_metrics
description: Compute diversity and correspondence diagnostics for few-shot image generation recovery experiments.
---

# Diversity and Correspondence Metrics

Use this skill when evaluating a few-shot generator adaptation run where overfitting and correspondence preservation matter. It provides deterministic vector analogues of the paper's intra-cluster LPIPS diversity and source-target correspondence analysis.

## Inputs
- Generated feature vectors.
- Target anchor vectors for nearest-anchor cluster assignment.
- Optional source and adapted vectors for pairwise similarity-correlation analysis.

## Outputs
- Average intra-cluster pairwise distance.
- Cluster sizes and assignments.
- Pairwise similarity correlation between source and adapted features.
- A concise metric summary for analysis artifacts.

## Workflow
1. Assign every generated vector to the nearest target anchor.
2. Compute all pairwise Euclidean distances inside each non-singleton cluster.
3. Average cluster distances, treating singleton clusters as zero-diversity evidence.
4. If source and adapted features are present, compute correlation between their pairwise cosine similarity lists.
5. Report numeric metrics and preserve enough assignments for debugging.

## Validation
Run `python tests/test_metrics.py` or validate this skill tree with `validate_skill_tree.py --run-tests`.

## Limitations
This skill uses generic vector distances in reduced recovery. Full paper-level evaluation should replace them with LPIPS/FID when the image stack and datasets are available.

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.