Prediction and explanation

From lza6/Armor-piercing-system-prompts · View interactive version

Prediction and explanation is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Run Nitrain prediction workflows and inspect the current OcclusionExplainer surface.

How to use this skill

Skill file

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

What does not belong here

sub-skills/preprocessing-and-loading/.

Typical user requests

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.

  1. Choose the task string carefully because prediction post-processing depends on

whether the task is regression, segmentation, or classification.

  1. Keep the input dataset tiny when you are only proving the prediction path.

Read these references

predictor and explainer signatures.

and output-shape rules.

sampler-axis errors, shape mismatch, and the current explainer stub.

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

sampler, and expansion axis.

runs the model, and then normalizes the outputs by task.

prediction when the sampler type is recognized.

Common outcomes

multidimensional.

implementation.

sampled axis is restored.

Watch for these signals

usually the first thing to inspect.

the model output is multidimensional.

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.