Skip to content

UMAP dimensionality reduction that serves visualization, clustering preprocessing, and supervised embeddings for high-dimensional data.

CCM score
67 of 100
skills.sh installs
222
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers parameter tuning for n_neighbors, min_dist, n_components, and metric, with starting values for each use case
  • Includes workflows for 2D/3D visualization, supervised and semi-supervised fitting with y labels, and parametric transform on new data
  • Enforces standardization of features before fitting, since unscaled dimensions distort the embedding
  • Designed for users pairing UMAP with HDBSCAN clustering or feeding embeddings into downstream scikit-learn models

Install

$ npx -y skills add davila7/claude-code-templates --skill umap-learn -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/davila7/claude-code-templates
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the umap-learn skill do for Claude Code?

The umap-learn skill guides the agent through UMAP, a nonlinear dimensionality reduction method for visualizing high-dimensional data in 2D or 3D. It also covers supervised and parametric UMAP and using UMAP as preprocessing before HDBSCAN clustering.

How do I install the umap-learn skill?

Run npx -y skills add davila7/claude-code-templates --skill umap-learn -y in your project. The skill then lets the agent apply UMAP embeddings with scikit-learn style code, with standardized features as the recommended first step.

Which skills lead the umap-learn skill in Data Science & Analytics?

umap-learn sits in the Data Science & Analytics category on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It is focused on one technique: UMAP embeddings, their parameters, and clustering preprocessing.

More from davila7/claude-code-templates

All 398

Similar to Umap Learn

More Data Science & Analytics