core-embedding
БесплатноБез исполняемых скриптовНе проверенUse base umap.UMAP for unsupervised embedding, transforms, input formats, metrics, reproducibility, and core API troubleshooting.
от lza6★ 19 звёзд на GitHubОб этом скилле
Core UMAP Embedding
Use this sub-skill when the task is about the base umap.UMAP estimator: dimensionality reduction, fit/fit_transform, using embedding_, transforming held-out data, approximate inverse transforms, appending data with update, dense/sparse/precomputed inputs, metric selection, precomputed k-NN, reproducibility, and sklearn-style pipeline use.
Fast routing
Read these bundled references for self-contained operating guidance:
- API reference: verified constructor and method signatures, fitted attributes, estimator behavior, and precomputed k-NN helpers.
- Workflows: recipes for basic embedding, train/test transform, inverse transform, update, reproducibility, sklearn pipelines, and script usage.
- Data and metrics: accepted data formats, sparse and precomputed-distance rules, metric categories, custom metric constraints, and parameter selection.
- Troubleshooting: recovery steps for shape, non-finite, metric, transform, disconnected-vertex, memory, parallelism, and optional TBB issues.
Bundled safe scripts:
scripts/umap_core_smoke.py: fits a tiny local sklearn dataset, optionally checks transform, inverse, sparse, precomputed-distance, precomputed k-NN, and update paths, and prints JSON.scripts/inspect_umap_estimator.py: prints installedumapversion/signatures and optionally diagnoses a trusted fitted estimator pickle.
Choose this sub-skill for
- Creating a low-dimensional embedding with
umap.UMAP(...).fit_transform(X)ormapper.fit(X); mapper.embedding_. - Fitting UMAP inside an sklearn
Pipeline, usually after scaling or vectorization, then passing the embedding to an estimator. - Transforming held-out samples into an already learned UMAP space with
mapper.transform(X_new). - Calling
inverse_transformfor approximate reconstruction from low-dimensional coordinates. - Calling
updateto append new samples to an existing unsupervised, non-precomputed UMAP model. - Using dense arrays, pandas/scikit-learn data,
scipy.sparsematrices,metric="precomputed", orprecomputed_knn. - Deciding base parameters such as
n_neighbors,min_dist,n_components,metric,output_metric,random_state,n_jobs,low_memory,force_approximation_algorithm, andtransform_seed. - Recovering from core API misuse: wrong distance-matrix shape, unsupported metrics, non-finite input, transform before a usable fit, unexpected
n_jobsbehavior, or disconnected vertices.
Route elsewhere
- Supervised labels,
target_metric*, densMAP, density preservation, clustering, or outlier-analysis workflows belong in../supervised-density/SKILL.md. AlignedUMAPand UMAP model composition operators belong in../aligned-composition/SKILL.md.umap.plotand visual diagnostics belong in../plotting-diagnostics/SKILL.md.- TensorFlow/Keras
ParametricUMAPbelongs in../parametric-umap/SKILL.md.
Core operating rules
- Treat
umap.UMAPas an sklearn-style transformer: rows are samples, columns are features, andfitreturns the estimator whilefit_transformreturns the embedding. embedding_is the fitted training embedding with shape(n_samples, n_components)whentransform_mode="embedding".- For reproducible layouts, set
random_state; expect UMAP to disable unsafe parallelism by overriding effectiven_jobsto1. Leaverandom_state=Noneonly when speed and multicore use matter more than exact repeatability. transform_seedcontrols stochastic details oftransform, not the original fitted layout.- Use
metric="precomputed"only when fitting on a square train-train distance matrix; transform then needs a new-to-train distance matrix with shape(n_new, n_train). precomputed_knncan save neighbor-search time only when the neighbor graph matches the fit data and has at leastn_neighborscolumns. A two-array(indices, distances)tuple fits but cannot transform new raw samples because it lacks a search index.inverse_transformis approximate and unavailable for sparse input, precomputed input, metrics without gradients, densMAP, and graph transform mode.updatemutates the fitted estimator, appending unsupervised non-precomputed data; it is not a general replacement for refitting when distribution shift is large.- Optional
plot,parametric_umap, andtbbextras are not required for core UMAP. Treat them as optional and unverified unless the active environment has installed them.
Установить core-embedding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл core-embedding?
Use base umap.UMAP for unsupervised embedding, transforms, input formats, metrics, reproducibility, and core API troubleshooting.
Как установить скилл core-embedding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл core-embedding запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic