Skip to content
Back to skills

Clustering

ASecurity

"Provides elbow-curve analysis for clusterers and direct

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Clustering?

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

Security grade badge for Clustering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-clustering-fd0ba2e2/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-clustering-fd0ba2e2)

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: clustering
description: "Provides elbow-curve analysis for clusterers and direct
  cluster-count workflows in scikit-plot."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Clustering

Use this sub-skill when the user wants to choose `K`, compare clustering inertia across cluster counts, or render an elbow curve for a cloneable scikit-learn-style clusterer.

## What this covers
- `scikitplot.cluster.plot_elbow_curve`
- elbow-curve analysis for KMeans-like estimators
- cluster-count sweeps over a finite `cluster_ranges`
- optional elapsed-time overlays and Matplotlib `Axes` reuse

## Route elsewhere when
- you need deprecated instance-method injection such as `clustering_factory` -> [legacy-factories](../legacy-factories/SKILL.md)
- you need silhouette plots from fitted labels or label-based clustering metrics -> [metrics](../metrics/SKILL.md)
- you need feature-importance or learning-curve routes -> [estimators](../estimators/SKILL.md)
- you need decomposition or PCA routes -> [decomposition](../decomposition/SKILL.md)

## Use this route
1. Start from `scikitplot.cluster.plot_elbow_curve`.
2. Confirm the clusterer is clone-compatible and exposes `n_clusters`, `fit`, and `score`.
3. Pick a small finite cluster range such as `range(1, 11)`.
4. Keep `n_jobs=1` for the most predictable smoke run unless you are explicitly checking the parallel path.
5. Set `show_cluster_time=True` only when you want the timing overlay.
6. Pass `ax=` only when embedding into an existing figure.
7. Use `ax.figure` to save or close the result if needed.

## Read next
- [references/api-reference.md](references/api-reference.md) for the exact function contract and implementation notes.
- [references/workflows.md](references/workflows.md) for K-selection and comparison recipes.
- [references/troubleshooting.md](references/troubleshooting.md) for interface, range, parallelism, and import failures.
- [scripts/clustering_smoke.py](scripts/clustering_smoke.py) for a tiny Agg-backed elbow-curve smoke run.

Files in this skill

  • SKILL.md2 KB
  • references/api-reference.md1.9 KB
  • references/troubleshooting.md1.9 KB
  • references/workflows.md2.2 KB
  • scripts/clustering_smoke.py2.9 KB

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.