umap-learn
Skill by K-Dense-AI
Applies UMAP-learn to nonlinear dimensionality reduction, 2D and 3D embeddings, and preprocessing for clustering. It covers supervised, semi-supervised, and transform workflows for anyone reducing high-dimensional data.
Install umap-learn
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/umap-learn ~/.claude/skills/umap-learnRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/umap-learn ~/.gemini/antigravity-cli/skills/umap-learnAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
UMAP-learn is a skill for nonlinear dimensionality reduction with the UMAP technique. It covers 2D and 3D embeddings, clustering preprocessing, supervised and semi-supervised UMAP, and workflows for DensMAP, AlignedUMAP, and Parametric UMAP. The guidance uses the scikit-learn estimator interface and explains how to set n_neighbors, min_dist, n_components, and metric.
It shows how to pair UMAP with HDBSCAN for density-based clustering and how to project held-out data with a fitted model using transform(). It tells the assistant to check finite coordinates, neighborhood retention, and seed sensitivity before reading an embedding, because UMAP axes and cluster gaps have no calibrated meaning. It suits users working with numeric, text, or binary feature data. The skill is licensed under BSD-3-Clause.
Written from the project's SKILL.md and checked against it.
What it can do
- Nonlinear dimensionality reductionFits UMAP embeddings in 2D, 3D, or higher-dimensional output spaces.
- Parameter tuning guidanceExplains how n_neighbors, min_dist, n_components, and metric change the embedding.
- Supervised UMAPPasses class labels through y to guide the embedding during fitting.
- Semi-supervised UMAPMarks unlabeled points with -1 for categorical targets.
- Clustering preprocessingReduces dimensions before HDBSCAN and reports noise points and cluster counts.
- Transforming new dataProjects unseen data into a fitted embedding with the transform() method.
- Metric-aware preprocessingAdvises scaling choices that match the distance metric in use.
What you need
- Python 3.9 or newer
- umap-learn (depends on scikit-learn, numba, pynndescent, numpy, and scipy)
- Optional: HDBSCAN for density-based clustering
- Network access for installation
Try asking
- Reduce this feature table to 2D with UMAP and plot it colored by label.
- Use UMAP with 10 components, then cluster the result with HDBSCAN.
- Fit UMAP on my training split and transform the test split.
Good to know
- UMAP axes, island areas, and gaps between clusters have no calibrated physical or probabilistic meaning.
- Standard UMAP does not preserve density.
- Parametric examples are source-checked illustrations, not executed TensorFlow tests.
- Parametric UMAP needs optional TensorFlow with Keras 3.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/umap-learn/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md21 KB -
references/api_reference.md28 KB
Alternatives to umap-learn
All alternatives →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.
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.
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.
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.
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.
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.
Compare with kaggle-cli, bigquery-bigframes or data-loading
umap-learn: common questions
Does UMAP preserve global distances?
The source says min_dist does not certify preservation of global distances. It also says larger neighborhoods do not make inter-cluster distances quantitatively reliable.
Can UMAP use labels?
Yes. Pass labels through y for supervised UMAP. For semi-supervised categorical workflows, encode unlabeled points as -1.
Which Python version does it need?
The source says Python 3.9 or newer is required, along with umap-learn and its listed dependencies.
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.
