executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
core-embeddingUse base umap.UMAP for unsupervised embedding, transforms, input formats, metrics, reproducibility, and core API troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.
Read these bundled references for self-contained operating guidance:
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 installed umap version/signatures and optionally diagnoses a trusted fitted estimator pickle.umap.UMAP(...).fit_transform(X) or mapper.fit(X); mapper.embedding_.Pipeline, usually after scaling or vectorization, then passing the embedding to an estimator.mapper.transform(X_new).inverse_transform for approximate reconstruction from low-dimensional coordinates.update to append new samples to an existing unsupervised, non-precomputed UMAP model.scipy.sparse matrices, metric="precomputed", or precomputed_knn.n_neighbors, min_dist, n_components, metric, output_metric, random_state, n_jobs, low_memory, force_approximation_algorithm, and transform_seed.n_jobs behavior, or disconnected vertices.target_metric*, densMAP, density preservation, clustering, or outlier-analysis workflows belong in ../supervised-density/SKILL.md.AlignedUMAP and UMAP model composition operators belong in ../aligned-composition/SKILL.md.umap.plot and visual diagnostics belong in ../plotting-diagnostics/SKILL.md.ParametricUMAP belongs in ../parametric-umap/SKILL.md.umap.UMAP as an sklearn-style transformer: rows are samples, columns are features, and fit returns the estimator while fit_transform returns the embedding.embedding_ is the fitted training embedding with shape (n_samples, n_components) when transform_mode="embedding".random_state; expect UMAP to disable unsafe parallelism by overriding effective n_jobs to 1. Leave random_state=None only when speed and multicore use matter more than exact repeatability.transform_seed controls stochastic details of transform, not the original fitted layout.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_knn can save neighbor-search time only when the neighbor graph matches the fit data and has at least n_neighbors columns. A two-array (indices, distances) tuple fits but cannot transform new raw samples because it lacks a search index.inverse_transform is approximate and unavailable for sparse input, precomputed input, metrics without gradients, densMAP, and graph transform mode.update mutates the fitted estimator, appending unsupervised non-precomputed data; it is not a general replacement for refitting when distribution shift is large.plot, parametric_umap, and tbb extras are not required for core UMAP. Treat them as optional and unverified unless the active environment has installed them.