Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

umap-learn

Skill by davila7

umap-learn is a skill for UMAP dimensionality reduction. It covers 2D and 3D visualization, clustering preprocessing with HDBSCAN, and supervised or parametric UMAP for high-dimensional data.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install umap-learn

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/umap-learn ~/.claude/skills/umap-learn

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install umap-learn in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

umap-learn is a skill that explains how to use UMAP (Uniform Manifold Approximation and Projection) for dimensionality reduction. It covers installing the umap-learn package with uv, standardizing features before fitting, and tuning the four main parameters: n_neighbors, min_dist, n_components and metric. It also shows how UMAP follows scikit-learn conventions, so it can be used in pipelines and with a transform method for new data.

The skill describes supervised and semi-supervised embeddings that take labels through the y parameter. It also gives UMAP settings for clustering with HDBSCAN and covers Parametric UMAP, which trains a neural network encoder with TensorFlow/Keras. It is aimed at data scientists and developers who need fast, nonlinear embeddings for visualization, clustering or feature engineering on high-dimensional data.

Written from the project's SKILL.md and checked against it.

What it can do

  • Basic embeddingsFit UMAP on standardized data and get a low-dimensional embedding for plotting.
  • Parameter tuningGuidance on n_neighbors, min_dist, n_components and metric with example settings.
  • Supervised UMAPPass labels through the y parameter to separate known classes in the embedding.
  • Semi-supervised UMAPMark unlabeled points with -1 to embed partially labeled data.
  • Clustering preprocessingReduce dimensions before HDBSCAN clustering and evaluate the result.
  • Transforming new dataProject unseen data into a trained embedding space with transform().
  • Parametric UMAPTrain a neural network encoder that can transform new data efficiently.

What you need

  • Python
  • uv for installation
  • TensorFlow 2.x for Parametric UMAP

Try asking

  • Reduce my scaled dataset to 2D with UMAP and plot it colored by label.
  • Set up UMAP with clustering settings and run HDBSCAN on the embedding.
  • Train UMAP on my labeled data and transform a held-out test set.

Good to know

  • Transform assumes the high-dimensional distribution is consistent between training and test data.
  • UMAP does not completely preserve density and can create artificial cluster divisions.
  • Parametric UMAP requires TensorFlow 2.x.
  • The first transform calls can be slower due to Numba JIT compilation.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: cli-tool/components/skills/scientific/umap-learn/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md15 KB
  • references/api_reference.md19 KB

Alternatives to umap-learn

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

umap-learn: common questions

Can UMAP replace t-SNE or PCA?

The source says UMAP follows scikit-learn conventions and can be used as a drop-in replacement for t-SNE or PCA.

Which UMAP settings does the skill recommend for clustering?

It recommends n_neighbors near 30, min_dist of 0.0 and 5 to 10 components, then clustering with HDBSCAN.

Does UMAP keep density intact?

No. The source says UMAP does not completely preserve density and can create artificial cluster divisions, so clusters should be validated.

How do I install umap-learn?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is umap-learn free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is umap-learn safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to umap-learn?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

umap-learn Install

Add to stack

Loading.