0

Kumo model explanations

شرح نماذج Kumo وتحليل أهمية الأعمدة.

Inspect and interpret gradient attribution (including requests called radiant attribution), column analysis and sampled explanation subgraphs from Kumo training and batch prediction runs in Python. Locate the correct run's explanation artifacts, explain feature scores and cohorts, and identify missing or unsupported explanations without automatically rerunning work.

Skill · سكلpython

Install

npx skills add NVIDIA/skills --skill kumo-model-explanations

Works with

claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)

Content

Kumo model explanations

Use this skill for questions such as “which columns influenced this model?”, “show gradient attribution”, or “compare predictions and observed outcomes by column cohort”. Kumo calls the method gradient attribution/scoring, not Radiant. Work in the existing Snowflake notebook with its in-process kumo.engine runtime and retained local run files.

Establish the run and question

  • Reuse the user's task, model, graph, and run identity. Do not restart training intake.
  • For a fresh training_result, use training_result.explanations. Otherwise reopen the explicit retained run with kumo.TrainingExplanations.load(run_dir). A downloaded model bundle is not the original training run.
  • For a prediction result, use prediction.explanations, or reopen its retained run_root with kumo.PredictionExplanations.load(run_dir). Retain the complete run, including its compact explanation status and saved sample mappings; an arbitrary artifact directory is invalid. Use the recorded explanations.run_id, not the directory name.
  • If several runs or trainer/refit directories exist, list candidates with their paths and ask which one the user means, before showing any score. Never silently select the newest directory or combine different runs.
  • Identify the task type, target/positive class, explanation stage, and the fit/refit used (training) or the recorded run ID and checkpoint (prediction). Record unknowns explicitly. These determine what the scores can mean.

Read [the artifact workflow](references/artifacts.md) for discovery, executable readers, generation behavior, and source provenance. Read only the selected run's files. Kumo is already present; if importing it fails, report the unavailable runtime and stop that workflow.

Generation and availability

On supported builds, Trainer.fit(train_table, snapshot=snapshot) automatically requests gradient scoring, column analysis and sampled subgraphs after successful training when model_plan.training_job.disable_explain is false. The selected trainer produces test-stage artifacts. A failure in this post-training step can leave a usable model with missing or partial explanations.

Trainer.predict(..., explanations=True) opts into prediction cohorts and sampled graphs for that call. The default skips generation. Replay uses the prediction inputs and selected published checkpoint, including after Trainer.load(). It adds inference work without training. Prediction explanations have PRED stage and no gradient attribution or observed targets. Report observed counts and the selected checkpoint from the public prediction.explanations.coverage value. For an authorized prediction with explicit coverage limits, pass explanations=kumo.PredictionExplanationOptions(cohort_rows=500, sample_rows=100). The limits are independent positive row counts. By default, sampled graphs cover up to the first 1,000 prediction rows. Cohorts process up to max(50 * B, 1000) rows rounded up to whole batches, where B = max(eval_batch_size // 4, 1). A smaller population processes fewer rows.

Prediction producer outcomes are independent: a failed producer's partial files are unavailable through the API, while another completed producer remains readable. Reopening the retained run preserves disabled, unsupported and failed states and their recorded errors when the status file was written. Status writes are best effort: if no status file was retained, PredictionExplanations.load raises kumo.InvalidRunError; if an earlier write succeeded but the final one failed, the reopened run reports failed even for producers that completed. Check the prediction logs before calling either a cause. Coverage records generation work, so it does not shrink when files are removed or only partly copied; check availability separately. Sample membership comes from the saved mappings.

The shared explainer can limit the number of test batches. Describe coverage as the processed test subset unless the run proves it covered the full test population.

This behavior is source-verified against the Kumo modules listed in the reference's *Evidence* section; it is not a claim about every runtime build. Check the actual runtime version, producer code when available, artifacts, and logs before promising generation. Do not infer support solely from the existence of disable_explain.

  • Column analysis is restricted to supported node-level tasks. It is not a link-prediction column-analysis workflow; forecasting is not in the reviewed producer's column-analysis list.
  • Gradient scoring supports more task types, but the shared trainer skips TWO_TOWER link models. The runtime's explainer task list can narrow support further.
  • training_result.explanations retrieves retained TEST-stage artifacts and provides gradient and cohort plots. There is no public kumo.Trainer.explain() or standalone regeneration API. Use only the documented per-call prediction option; do not call private trainers or invent standalone regeneration methods.
  • An inspection request does not authorize another fit. If required files are absent, diagnose the reason first. Generate an additional fit only when the user has requested that run.

Interpret the evidence

Gradient scores rank table-column contributions aggregated across the examples processed by the explainer. The default producer normalizes them across the graph. They are not signed effects, probabilities, percentages of model accuracy, causal effects, or a per-person explanation. Retain the table name when ranking identically named columns. Report the actual coverage and normalization observed; a missing column is not automatically a zero-contribution column.

Column analysis groups values into cohorts per table, column, and graph hop and records population shares, mean predictions, and, when present, mean observed targets. Inspect a class's own series for multiclass/multilabel tasks. Compare prediction and target patterns with their population shares. Small groups and sampled neighborhoods limit interpretation.

prediction_score and target_score summarize between-cohort variation and are normalized separately by the default producer. Neither is AUROC, an error metric, or the gradient score. Do not rank these three score families in one list or treat their differences as calibration error. Use the cohort means for descriptive prediction-versus-target comparisons. A cohort mismatch is a lead to investigate, not proof of leakage or a causal mechanism.

Return a useful answer

Every answer, however short, carries:

  • the run, task, stage and the exact file paths read; for training, the selected trainer/refit; for prediction, the recorded run_id and coverage.checkpoint_path (prediction runs have no trainer/refit selection; None means the checkpoint was not resolved, e.g. a disabled run);
  • for training only, gradient scores named as Kumo gradient attribution over the processed test subset, normalized across the graph as observed (the default producer, when the total is positive), and never called drivers, probabilities or percentages; prediction runs record none;
  • for cohorts, each cohort's population share beside its mean prediction and, when the file records one, mean target, read from column analysis;
  • for a plot, the plotting code in the reply, reading the selected run's files, titled with the table, column, run and actual TEST or PRED stage;
  • when evidence is missing, the recorded availability reason and whether any new computation was requested; do not start another fit or predict during inspection.

Distinguish observations, hypotheses, and missing evidence. Do not promise individual prediction explanations from aggregate files; sampled subgraphs cover only the selected run's sampled rows (see the reference's *Sampled subgraphs*). If only one explanation family is present, analyze that family and state why the other could not be assessed.

Explain that these files live in local scratch and are excluded from the published model bundle. Keep this task focused on inspection and interpretation; exporting or regenerating results requires the user's corresponding request. For learning curves, trial comparisons, or aggregate evaluation metrics, use kumo-training-diagnostics when available.

Source and license

Source
NVIDIA Skills
Original
NVIDIA/skills/skills/kumo-model-explanations/SKILL.md
License
Apache-2.0 AND CC-BY-4.0