umap-learn

Reduce high-dimensional data to lower-dimensional embeddings with UMAP.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill umap-learn-k-dense-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: umap-learn
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/umap-learn
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill umap-learn-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Dimensionality reduction and visualization for high-dimensional datasets, enabling compact representations that preserve both local and global structure for interpretation, clustering, and downstream modeling.

Core Features & Use Cases

  • Fast nonlinear dimensionality reduction to produce 2D/3D embeddings suitable for visualization and exploration.
  • Supports supervised, semi-supervised workflows, Parametric UMAP, and alignment variants for related datasets, with sklearn-style pipelines.
  • Transform new data into the learned embedding space and use embeddings for clustering (e.g., with HDBSCAN) or downstream classifiers.
  • Common use cases include visualizing gene expression data, image or text embeddings, and preparing features for ML pipelines.

Quick Start

Install umap-learn and run a basic embedding on your dataset.

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 for visualization while preserving local and global structure?▼

Dimensionality reduction with UMAP compresses high-dimensional data into 2D or 3D embeddings, preserving both local and global structure for visualization. It supports sklearn-style pipelines to prepare features for downstream models.

Can I use UMAP embeddings for clustering with HDBSCAN?▼

UMAP embeddings work seamlessly for clustering with HDBSCAN. You reduce high-dimensional data to a lower-dimensional space first, then apply HDBSCAN to identify distinct clusters within the transformed embedding.

What's the best way to transform new data into an existing embedding space?▼

Transforming new data into an existing embedding space uses UMAP's transform options. After fitting UMAP on initial training data, you project new observations into the same learned lower-dimensional manifold.

Does UMAP support supervised and semi-supervised dimensionality reduction workflows?▼

UMAP supports supervised and semi-supervised dimensionality reduction workflows, allowing labels to guide the embedding. It also includes Parametric UMAP and alignment variants for comparing related datasets.

How do I tune UMAP parameters like n_neighbors and min_dist for my dataset?▼

UMAP parameters like n_neighbors, min_dist, n_components, and metric control the embedding balance. Adjust n_neighbors for local versus global structure, and min_dist to regulate how tightly points cluster together.

When should I not use UMAP for dimensionality reduction?▼

UMAP may not suit purely linear dimensionality reduction needs where exact variance preservation is critical. For strict variance maximization, consider category-level linear alternatives instead of UMAP's nonlinear manifold approach.