
Umap Learn
If you need to squash high-dimensional data down for visualization or clustering, this is the modern answer. It's faster than t-SNE and actually preserves both local and global structure, which matters when you're trying to understand what your data is doing. The supervised mode is legitimately useful for metric learning, and it scales to higher output dimensions without falling apart, so you can use it as preprocessing for HDBSCAN or other clustering algorithms. Just remember to standardize your features first or you'll get garbage. The parameter guide here is solid: bump n_neighbors to 30 and min_dist to 0.0 for clustering, keep defaults for quick visualization. It follows scikit-learn conventions, so it drops right into existing pipelines.
- skills.sh installs
- 222
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill umap-learn --agent claude-codeInstalls into .claude/skills of the current project.
Files
UMAP-Learn
Overview
UMAP (Uniform Manifold Approximation and Projection) is a dimensionality reduction technique for visualization and general non-linear dimensionality reduction. Apply this skill for fast, scalable embeddings that preserve local and global structure, supervised learning, and clustering preprocessing.
Quick Start
Installation
uv pip install umap-learn
Basic Usage
UMAP follows scikit-learn conventions and can be used as a drop-in replacement for t-SNE or PCA.
import umap
from sklearn.preprocessing import StandardScaler
# Prepare data (standardization is essential)
scaled_data = StandardScaler().fit_transform(data)
# Method 1: Single step (fit and transform)
embedding = umap.UMAP().fit_transform(scaled_data)
# Method 2: Separate steps (for reusing trained model)
reducer = umap.UMAP(random_state=42)
reducer.fit(scaled_data)
embedding = reducer.embedding_ # Access the trained embedding
Critical preprocessing requirement: Always standardize features to comparable scales before applying UMAP to ensure equal weighting across dimensions.
Typical Workflow
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Documentation, Data Science & ML
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Arboreto221
- Clerk Auth220
- Cellxgene Census219
- Kaizen219
- Lamindb219
- Nosql Expert219
- Opentargets Database219
- Pyopenms219
- Capa Officer218
- Deeptools218
- Ena Database218
- Naming Analyzer218
- Popup Cro218
- Cosmic Database217
- Histolab217
- Neuropixels Analysis217
- Pydeseq2217
- Benchling Integration216
- Hypogenic216
- Notion Template Business216
- Pennylane215
- Zinc Database215
- Cirq214
- Esm214