Skip to content
Back to skills

Umap Learn

ASecurity

"Use the umap-learn package for UMAP dimensionality reduction,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
datapythonbashdebuggingapibackendperformance

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill umap-learn --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Umap Learn?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Umap Learn
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-umap-learn/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-umap-learn)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: umap-learn
description: "Use the umap-learn package for UMAP dimensionality reduction,
  supervised and density workflows, aligned embeddings, plotting, and
  ParametricUMAP."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# umap-learn Repo Skill

Use this repo skill when a task asks how to use `umap-learn` / `umap` for
Uniform Manifold Approximation and Projection: dimensionality reduction,
visualization embeddings, transform workflows, supervised UMAP, densMAP,
aligned embeddings, optional plotting, or optional ParametricUMAP.

## Install and Import

```bash
pip install umap-learn
```

```python
import umap
mapper = umap.UMAP()
```

Package facts:

- Distribution name: `umap-learn`.
- Import package: `umap`.
- Python requirement: `>=3.10` in package metadata.
- Base dependencies: numpy, scipy, scikit-learn, numba, pynndescent, and tqdm.
- No package console entry points are exposed; workflows are Python API based.

Optional extras:

```bash
pip install "umap-learn[plot]"           # umap.plot helpers
pip install "umap-learn[parametric_umap]" # TensorFlow/Keras ParametricUMAP
pip install "umap-learn[tbb]"            # optional CPU optimization
```

Run [`scripts/check_umap_environment.py`](scripts/check_umap_environment.py) to
inspect a target environment and optional extras:

```bash
python scripts/check_umap_environment.py --json
```

## Route Map

| Task | Read |
| --- | --- |
| Fit a standard UMAP embedding, tune base parameters, transform new rows, inverse transform, use sparse/precomputed inputs, or debug core API errors | [core-embedding](sub-skills/core-embedding/SKILL.md) |
| Use supervised labels, semi-supervised targets, densMAP, density outputs, clustering interpretation, or outlier analysis | [supervised-density](sub-skills/supervised-density/SKILL.md) |
| Align related slices/time periods, update aligned embeddings, or combine fitted UMAP models with intersection/union/contrast operators | [aligned-composition](sub-skills/aligned-composition/SKILL.md) |
| Use `umap.plot` points/connectivity/diagnostic/interactive helpers or fix optional plotting dependency failures | [plotting-diagnostics](sub-skills/plotting-diagnostics/SKILL.md) |
| Use optional TensorFlow/Keras `ParametricUMAP`, neural encoders/decoders, reconstruction, save/load, callbacks, landmarks, or ONNX export | [parametric-umap](sub-skills/parametric-umap/SKILL.md) |

## Fast Decision Guide

- Start with `umap.UMAP(random_state=42)` on a sample while debugging; remove
  the seed later if speed matters more than reproducibility.
- Use `n_neighbors` for local/global neighbourhood balance and `min_dist` for
  embedding compactness.
- Use `fit`/`fit_transform` on training data and `transform` on held-out data;
  check precomputed-distance shape contracts before using `metric="precomputed"`.
- Use `fit(X, y)` only when labels should influence the manifold; validate with
  a downstream metric rather than only a visually separated plot.
- Use densMAP only when density preservation is part of the question; some
  transform/inverse paths are intentionally unavailable for densMAP.
- Treat plotting and ParametricUMAP as optional extras. Missing optional
  dependencies should produce actionable install guidance, not block base UMAP.
- Do not claim CUDA/GPU acceleration for base `umap-learn`. Visible hardware is
  irrelevant unless a separate optional neural backend is installed and verified.

## Shared References

- Read [installation and environment](references/installation-and-environment.md)
  before setting up package dependencies or optional extras.
- Read [cross-cutting troubleshooting](references/troubleshooting.md) for
  install/import, optional extras, performance, and staleness checks.
- Read [repository provenance](references/repo-provenance.md) before deciding
  whether this generated skill is current for a checkout.

## Minimal Import Check

```python
import umap
print(umap.__version__)
print(umap.UMAP(n_neighbors=5, n_epochs=10, random_state=42))
```

For a runnable toy-data check, use the core sub-skill smoke script:

```bash
python sub-skills/core-embedding/scripts/umap_core_smoke.py --transform --json
```

Files in this skill

  • SKILL.md4.1 KB
  • references/installation-and-environment.md2.5 KB
  • references/repo-provenance.md1.6 KB
  • references/repo-routing-metadata.json320 B
  • references/troubleshooting.md3.1 KB
  • scripts/check_umap_environment.py3.5 KB
  • sub-skills/aligned-composition/SKILL.md3.8 KB
  • sub-skills/aligned-composition/references/api-reference.md3.7 KB
  • sub-skills/aligned-composition/references/troubleshooting.md3.6 KB
  • sub-skills/aligned-composition/references/workflows.md4.5 KB
  • sub-skills/aligned-composition/scripts/aligned_composition_smoke.py5.4 KB
  • sub-skills/core-embedding/SKILL.md4.8 KB
  • sub-skills/core-embedding/references/api-reference.md14.2 KB
  • sub-skills/core-embedding/references/data-and-metrics.md11.4 KB
  • sub-skills/core-embedding/references/troubleshooting.md11.3 KB
  • sub-skills/core-embedding/references/workflows.md9.9 KB
  • sub-skills/core-embedding/scripts/inspect_umap_estimator.py10.8 KB
  • sub-skills/core-embedding/scripts/umap_core_smoke.py13.8 KB
  • sub-skills/parametric-umap/SKILL.md4.7 KB
  • sub-skills/parametric-umap/references/api-reference.md9.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.