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-code

Installs 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
1dmccreary avatarreadme-generatordmccreary/claude-skillsCreates or updates the GitHub README for a textbook project with badges, project overview, site metrics, and getting-started instructions.213skills.sh installs
2akillness avatarresearch-paper-writingakillness/oh-my-skillsresearch paper writing196skills.sh installs
3yonatangross avatardemo-produceryonatangross/orchestkitUniversal demo video creator for skills, agents, plugins, tutorials, CLI commands, and code walkthroughs. Generates scripts, storyboards, VHS terminal recording195skills.sh installs
4qodex-ai avatarllm-fine-tuning-guideqodex-ai/ai-agent-skillsMaster fine-tuning of large language models for specific domains and tasks. Covers data preparation, training techniques, optimization strategies, and evaluatio194skills.sh installs
5yunshu0909 avatarprd-doc-writeryunshu0909/yunshu_skillshubWrite and iteratively refine PRD/需求文档 with a story-driven structure and strict staged confirmations (journey map alignment, per-story single-point confirmation,191skills.sh installs
6aliramw avatardingtalk-docsaliramw/dingtalk-docs管理钉钉云文档中的文档、文件夹和内容。当用户想要创建文档、创建表格/脑图/白板/演示/多维表等文件、搜索文档、读取或写入文档内容、创建文件夹整理文档、遍历文件夹结构、精确编辑文档块元素时使用。也适用于用户提到云文档、在线文档、钉钉文档、钉文档等关键词的场景。不要在用户需要管理日程、发消息或处理审批流时触发。190skills.sh installs