umap-learn

Reduce high-dimensional data to low-dimensional embeddings for visualization and clustering.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill umap-learn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umap-learn
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/scientific-pkg-umap-learn
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill umap-learn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides fast nonlinear dimensionality reduction for visualization, preprocessing, and clustering with optional supervised or parametric variants.

Core Features & Use Cases

  • 2D/3D embeddings for visualization and clustering prep
  • Supervised and semi-supervised options
  • Parametric UMAP for transforming new data
  • Broad applicability across numerical and text data

Quick Start

Install umap-learn, standardize features, fit an embedding, and visualize results.

Frequently Asked Questions about umap-learn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce high-dimensional data to 2D or 3D for visualization?

Dimensionality reduction transforms high-dimensional data into low-dimensional embeddings while preserving local and global structure. UMAP performs this nonlinear reduction efficiently, standardize your features first, fit the embedding, then visualize the resulting 2D or 3D coordinates.

Can I use UMAP for clustering preprocessing with HDBSCAN?

Yes. UMAP reduces dimensionality to prepare data for density-based clustering algorithms like HDBSCAN. The low-dimensional embeddings make cluster detection more reliable by compressing noise and separating dense regions.

Does UMAP support supervised or semi-supervised dimension reduction?

UMAP supports both supervised and semi-supervised modes, allowing you to incorporate label information when available. This produces embeddings that reflect both data structure and class relationships for more interpretable visualizations.

What preprocessing steps are required before using UMAP?

Standardize your numerical features as a critical preprocessing step before fitting UMAP. This ensures all dimensions contribute equally to the distance calculations and improves embedding quality.

How do I transform new data after fitting a UMAP model?

Use parametric UMAP to create a model that transforms new data consistently. After fitting on your training set, apply the same model to new samples to generate embeddings aligned with the original embedding space.

What distance metrics does UMAP support?

UMAP supports multiple distance metrics including Euclidean, Manhattan, and others. You can tune the metric parameter alongside n_neighbors, min_dist, and n_components to customize the embedding for your data and use case.