UMAP-learn Dimensionality Reduction Skill
Guides UMAP workflows for 2D/3D embeddings, clustering preprocessing, supervised UMAP, and Parametric/Aligned UMAP.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
Gives Claude a practical playbook for nonlinear dimensionality reduction with umap-learn.
- Deep parameter guide for
n_neighbors,min_dist,n_components, andmetric, including effects at each value range - Distinct presets for visualization, clustering preprocessing, and ML feature engineering
- Supervised and semi-supervised UMAP (
y=labels,-1for unlabeled points) - End-to-end UMAP + HDBSCAN clustering workflow with Adjusted Rand Score evaluation
- Advanced paths: Parametric UMAP with Keras encoders,
inverse_transform, AlignedUMAP for time-series/batch data - Troubleshooting table for fragmented clusters, NaNs, collapsed embeddings, and module shadowing
Who it's for
- Data scientists and computational biologists visualizing high-dimensional data
- Teams replacing t-SNE with something faster and better at global structure
- ML engineers embedding text/image vectors before density-based clustering
- Pipeline authors who must project unseen data into a learned embedding space
Examples
- "Plot a 2D UMAP of this expression matrix" → standardizes features, fits
UMAP(n_neighbors=15, min_dist=0.1, random_state=42), and returns matplotlib scatter code. - "Find clusters in this dataset" → switches to clustering settings (
n_neighbors=30, min_dist=0.0, n_components=10), runs HDBSCAN, reports cluster counts and noise points. - "I need to embed new samples after training" → explains the distribution-consistency caveat of
transform()and shows a Parametric UMAP encoder plussave()/load_ParametricUMAP().
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/umap-learn folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/umap-learn/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/umap-learn ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy this skill:
cp -r scientific-agent-skills/skills/umap-learn ~/.claude/skills/ - Install the Python dependencies:
pip install umap-learn hdbscan scikit-learn matplotlib(check PyPI for the current stable version rather than trusting the pinned number in the doc). - Restart Claude Code and prompt something like "reduce this dataset with UMAP and plot the clusters" to trigger the skill.
View source on GitHub ↗License: MIT