parametric-umap
БесплатноБез исполняемых скриптовНе проверенUse ParametricUMAP for TensorFlow/Keras-backed neural embeddings, reconstruction, save/load, callbacks, landmarks, and ONNX caveats.
от lza6★ 19 звёзд на GitHubОб этом скилле
Parametric UMAP
Use this sub-skill when the task is about the neural ParametricUMAP path
rather than the base umap.UMAP estimator.
Route Here For
- Diagnosing missing TensorFlow/Keras support for Parametric UMAP.
- Running learned embeddings with
ParametricUMAP. - Supplying custom encoder/decoder networks.
- Enabling reconstruction,
inverse_transform, orautoencoder_loss. - Saving, loading, or continuing parametric models.
- Adding callbacks, landmarks, or retraining on new data slices.
- Checking ONNX export caveats and optional Torch dependencies.
Route Elsewhere
- Base UMAP fit/transform/inverse/update workflows: read core-embedding.
- Plotting the training history or other UMAP diagnostics: read plotting-diagnostics.
- Supervised, densMAP, or aligned/composed workflows are owned by their sibling sub-skills, not this one.
Start Fast
- Run
scripts/check_parametric_stack.pybefore training. It reports whetherumap, TensorFlow, Keras, and the optional Torch/torchvision ONNX path are available, and it explains the root import shim when TensorFlow is absent. - If TensorFlow/Keras are missing, do not expect
from umap import ParametricUMAPto train. In that case the root package may expose a dummy class whose constructor raisesImportError. - Keep custom encoder output units aligned with
n_components, and keep decoder output shape aligned withdimswhen reconstruction is enabled. - CPU-only TensorFlow is enough for correctness checks; GPU support is optional and only affects speed.
Quick Pattern
from umap.parametric_umap import ParametricUMAP
model = ParametricUMAP(n_components=2, verbose=True)
embedding = model.fit_transform(X)
For a custom network or reconstruction, read the bundled references before writing code:
references/parametric-workflows.mdfor recipes.references/api-reference.mdfor verified signatures and parameter notes.references/troubleshooting.mdfor import, shape, save/load, landmark, and ONNX recovery steps.
Decision Points
- Need the real class or a dummy shim? Use the stack check first. If
TensorFlow is missing, the root import may still expose
ParametricUMAP, but constructing it raisesImportError. - Need a neural embedding only? Use the default fully connected encoder.
- Need a custom architecture? Supply both
encoderand, when requested,decoder; make sure the encoder output width equalsn_components. - Need reconstruction? Enable
parametric_reconstruction=True, keep the data scale and decoder output compatible with the chosen loss, and usereconstruction_validationwhen you want held-out reconstruction checks. - Need early stopping or other callbacks? Pass them through
keras_fit_kwargs. - Need to continue from a previous fit on new data? Use
add_landmarks(...)or passlandmark_positionsintofit/fit_transform. - Need export rather than training?
save()andload_ParametricUMAP()preserve the Keras objects and pickle state;to_ONNX()is an encoder-only export path and requires Torch extras.
Keep in Mind
transform(X, batch_size=None)uses the encoder path directly; provide input in the shape the encoder expects.inverse_transform(X)uses the decoder only whenparametric_reconstruction=True; otherwise it falls back to the base UMAP inverse path._historyaccumulates Keras loss values across fits. Use the plotting sub-skill if you need to render the curve.- Save/load behavior is version-sensitive; verify the generated filenames when round-tripping a model directory.
References
- Read
references/parametric-workflows.mdfor end-to-end recipes covering embedding, reconstruction, callbacks, save/load, landmarks, and ONNX caveats. - Read
references/api-reference.mdfor the constructor, method signatures, and shape/parameter constraints. - Read
references/troubleshooting.mdfor the concrete failure modes and recovery steps. - Run
scripts/check_parametric_stack.pywhenever you need a safe import/dependency summary or a tiny smoke check.
Установить parametric-umap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл parametric-umap?
Use ParametricUMAP for TensorFlow/Keras-backed neural embeddings, reconstruction, save/load, callbacks, landmarks, and ONNX caveats.
Как установить скилл parametric-umap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл parametric-umap запускает скрипты?
Нет, скилл состоит только из инструкций (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