Skip to content
Back to skills

Evaluation And Data

ASecurity

"Router for imbalanced-learn dataset fabrication, benchmark

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolsgoapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill evaluation-and-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Evaluation And Data?

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

Security grade badge for Evaluation And Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-evaluation-and-data/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-evaluation-and-data)

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

Download with Pro
SKILL.md
---
name: evaluation-and-data
description: "Router for imbalanced-learn dataset fabrication, benchmark
  loading, imbalance-aware metrics, and categorical distance tools."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# evaluation-and-data

Use this sub-skill when the task is about preparing imbalanced datasets or
measuring model quality on imbalanced classification problems.

This sub-skill owns the package surfaces that shape or evaluate data:

- `make_imbalance`
- `fetch_datasets`
- `classification_report_imbalanced`
- `geometric_mean_score`
- `sensitivity_specificity_support`
- `sensitivity_score`
- `specificity_score`
- `make_index_balanced_accuracy`
- `macro_averaged_mean_absolute_error`
- `ValueDifferenceMetric`

It also owns the common-pitfalls guidance around data leakage and evaluation
order.

## What to do first

1. Decide whether the user wants to create an imbalanced dataset, load a cached
   benchmark dataset, or evaluate predictions.
2. If the task is about evaluation, decide whether the labels are binary,
   multiclass, or ordinal.
3. If the task is about categorical similarity, check whether the inputs are
   categorical-only and need `ValueDifferenceMetric`.
4. Keep any resampling inside the training branch; do not evaluate on a fully
   resampled dataset unless that is explicitly the point of the example.
5. Verify the output on a tiny dataset before applying the same pattern to a
   real one.

## Typical routing cues

- `make_imbalance`, `fetch_datasets`
- `classification_report_imbalanced`, `geometric_mean_score`
- `sensitivity_score`, `specificity_score`, `macro_averaged_mean_absolute_error`
- `ValueDifferenceMetric`
- `common_pitfalls`, leakage, balanced accuracy, pandas output

## When to read the bundled references

- `references/workflows.md` for dataset shaping and metric selection.
- `references/api-reference.md` for the compact dataset and metric catalog.
- `references/troubleshooting.md` when downloading, label encoding, or metric
  selection fails.

## Common choices

- Use `make_imbalance` when the task starts from a balanced dataset and needs a
  deliberate class-skew scenario.
- Use `fetch_datasets` when the task needs one of the curated benchmark
  datasets and offline cache behavior is acceptable.
- Use `classification_report_imbalanced` when the user wants a human-readable
  per-class summary.
- Use `geometric_mean_score` when class-wise balance matters more than overall
  accuracy.
- Use `sensitivity_*` and `specificity_*` when the domain is medical or recall-
  versus-specificity oriented.
- Use `macro_averaged_mean_absolute_error` for ordinal imbalance problems.
- Use `ValueDifferenceMetric` when the task is about categorical pairwise
  distances.

## Native evidence to keep in mind

These repo tests are the most relevant later verification anchors for this
sub-skill:

- `imblearn/datasets/tests/test_imbalance.py::test_make_imbalanced_iris`
- `imblearn/datasets/tests/test_zenodo.py::test_fetch`
- `imblearn/metrics/tests/test_classification.py::test_classification_report_imbalanced_multiclass`
- `imblearn/metrics/tests/test_classification.py::test_geometric_mean_multiclass`
- `imblearn/metrics/tests/test_classification.py::test_macro_averaged_mean_absolute_error`
- `imblearn/metrics/tests/test_pairwise.py::test_value_difference_metric`
- `imblearn/tests/test_common.py::test_pandas_column_name_consistency`

## Package-specific cautions

- `fetch_datasets` is a network/cache helper, not a pure offline primitive.
- Metric results depend on label order, averaging choice, and the selected
  positive label.
- `ValueDifferenceMetric` expects categorical values to be encoded in a way the
  metric can interpret.
- Leakage-safe evaluation means splitting before resampling.

## Use the scripts

- `scripts/dataset_imbalance_demo.py` for tiny `make_imbalance` and cached
  dataset checks.
- `scripts/metrics_report_demo.py` for compact metric output on fixed labels.
- `scripts/vdm_demo.py` for categorical distance checks.

Files in this skill

  • SKILL.md4 KB
  • references/api-reference.md2.1 KB
  • references/troubleshooting.md1.4 KB
  • references/workflows.md1.8 KB
  • scripts/dataset_imbalance_demo.py843 B
  • scripts/metrics_report_demo.py977 B
  • scripts/vdm_demo.py771 B

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.