umap-learn
БесплатноБез исполняемых скриптовНе проверенUse the umap-learn package for UMAP dimensionality reduction, supervised and density workflows, aligned embeddings, plotting, and ParametricUMAP.
от lza6★ 19 звёзд на GitHubОб этом скилле
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
pip install umap-learn
import umap
mapper = umap.UMAP()
Package facts:
- Distribution name:
umap-learn. - Import package:
umap. - Python requirement:
>=3.10in 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:
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 to
inspect a target environment and optional extras:
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 |
| Use supervised labels, semi-supervised targets, densMAP, density outputs, clustering interpretation, or outlier analysis | supervised-density |
| Align related slices/time periods, update aligned embeddings, or combine fitted UMAP models with intersection/union/contrast operators | aligned-composition |
Use umap.plot points/connectivity/diagnostic/interactive helpers or fix optional plotting dependency failures |
plotting-diagnostics |
Use optional TensorFlow/Keras ParametricUMAP, neural encoders/decoders, reconstruction, save/load, callbacks, landmarks, or ONNX export |
parametric-umap |
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_neighborsfor local/global neighbourhood balance andmin_distfor embedding compactness. - Use
fit/fit_transformon training data andtransformon held-out data; check precomputed-distance shape contracts before usingmetric="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 before setting up package dependencies or optional extras.
- Read cross-cutting troubleshooting for install/import, optional extras, performance, and staleness checks.
- Read repository provenance before deciding whether this generated skill is current for a checkout.
Minimal Import Check
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:
python sub-skills/core-embedding/scripts/umap_core_smoke.py --transform --json
Установить umap-learn в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл umap-learn?
Use the umap-learn package for UMAP dimensionality reduction, supervised and density workflows, aligned embeddings, plotting, and ParametricUMAP.
Как установить скилл umap-learn?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл umap-learn запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic