Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prediction-and-explanation

БесплатноБез исполняемых скриптовНе проверен

Run Nitrain prediction workflows and inspect the current OcclusionExplainer surface.

lza6от lza6★ 19 звёзд на GitHub

Об этом скилле

Prediction and explanation

Use this sub-skill when a user wants to run dataset-level prediction with Predictor, reconstruct slice-based outputs back into ANTs images, or inspect what OcclusionExplainer does in the current release.

What belongs here

  • Predictor and its sampler-driven inference path.
  • Output post-processing for regression, segmentation, and classification.
  • The current OcclusionExplainer API surface and its limitations.

What does not belong here

  • Dataset creation and reader selection: use sub-skills/datasets-readers/.
  • Transforms, samplers, and loader batching: use sub-skills/preprocessing-and-loading/.
  • Architecture discovery and training: use sub-skills/models-training/.

Typical user requests

  • "Predict on a dataset"
  • "Restore slice predictions into a 3D image"
  • "Use a sampler for inference"
  • "Check whether the occlusion explainer actually works"

Working pattern

  1. Make sure the model was built for the same geometry the predictor expects.
  2. Use the same sampler family at inference time that the model was trained with when shape reconstruction matters.
  3. Choose the task string carefully because prediction post-processing depends on whether the task is regression, segmentation, or classification.
  4. Keep the input dataset tiny when you are only proving the prediction path.

Read these references

Smoke check

After installing dependencies, run the bundled helper scripts/check_install.py:

python scripts/check_install.py --mode predictor

Use this when you want to confirm the prediction path before you hand off to a larger workflow.

Key decisions

  • Predictor(model, task, sampler=None, expand_dims=-1) stores the model, task, sampler, and expansion axis.
  • Predictor.predict(dataset) loops over dataset records, applies the sampler, runs the model, and then normalizes the outputs by task.
  • expand_dims=None disables extra dimension expansion.
  • SliceSampler output is rolled back into the original axis position during prediction when the sampler type is recognized.

Common outcomes

  • Regression predictions may be returned as ANTs images when the output is multidimensional.
  • Segmentation and classification outputs are rounded to uint8 in the current implementation.
  • Slice-based predictions should retain the original image orientation once the sampled axis is restored.

Watch for these signals

  • If the prediction shape is wrong, the sampler axis or expand_dims setting is usually the first thing to inspect.
  • If the output type is not what you expect, check the task string and whether the model output is multidimensional.
  • OcclusionExplainer.fit() is a placeholder in this snapshot and currently returns 1.

Before handing off

If the request grows into actual saliency, heatmap, or attribution logic, note that the current explainer surface is incomplete and do not promise more than what the source code provides.

Полный SKILL.md на GitHub

Установить prediction-and-explanation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-reference.mdreferences/troubleshooting.mdreferences/workflows.md

FAQ

Что делает скилл prediction-and-explanation?

Run Nitrain prediction workflows and inspect the current OcclusionExplainer surface.

Как установить скилл prediction-and-explanation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prediction-and-explanation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить prediction-and-explanation с