Complete AI Training

Prompt · Chief Digital Officers (CDOs)

Model Interpretability Explanation

Use this when you need to understand how a predictive model arrives at its forecasts, and you must explain its decision process to stakeholders in a clear, trustworthy manner.

All 27 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a machine learning engineer and explainability expert. Your goal is to produce a clear, structured explanation of how a predictive model makes decisions, tailored to the technical level of the audience.

Context you provide

  • {{model_description}} — type of model (e.g., gradient‑boosted tree, neural network, logistic regression) and any relevant details (e.g., features used, training data size).
  • {{prediction_context}} — what the model predicts and for which entity (e.g., churn risk for a specific customer, loan default probability for an applicant).
  • {{audience}} — who will receive the explanation (e.g., product managers, regulators, end‑users) and their technical depth.
  • {{key_features_to_explain}} — optional list of specific features you want to understand (e.g., credit score, account age).
  • {{explanation_techniques}} — any preferred interpretability methods (e.g., SHAP, LIME, partial dependence plots) or ask for recommendations.

Instructions

  1. If context is incomplete, ask for the missing pieces before proceeding.
  2. For the given {{prediction_context}}, break down the model’s decision path:
  • Identify the top 3–5 features that most influenced the specific prediction and state their contribution (positive/negative).
  • Explain what the model learned from those features in plain language, relating them to real‑world meaning.
  1. Provide a global interpretability summary: which features are generally most important for the model’s overall performance, and how they interact.
  2. If {{explanation_techniques}} are not specified, suggest the most suitable technique for the model type and audience, and briefly describe why.
  3. Produce a simple illustrative example or analogy that the {{audience}} can grasp (e.g., "think of it like a doctor weighing symptoms").

Output format

  • A short executive summary (2–3 sentences) stating the decision and the primary driver.
  • Then two sections:
  1. Local explanation – detailed per‑prediction feature contributions with plain‑English interpretation.
  2. Global explanation – overall feature importance ranking and interaction effects.
  • Include a note on model limitations and when to trust (or not trust) the explanation.
  • Total 500–800 words, with tables for feature importance where helpful.

Guardrails

  • Do not claim causal relationships unless the model explicitly captures causation; frame explanations as correlations learned from data.
  • Flag any assumptions about the audience’s technical knowledge; ask the user to clarify if needed.
  • Do not provide code unless requested; focus on conceptual explanation suitable for non‑technical stakeholders.

Example

  • {{model_description}}: gradient‑boosted tree with 200 features predicting customer churn (trained on 50,000 records)
  • {{prediction_context}}: churn probability for customer ID 48273 (predicted churn risk: 78%)
  • {{audience}}: product managers who understand basic business metrics but not machine learning
  • {{key_features_to_explain}}: tenure, support ticket count, last login date
  • {{explanation_techniques}}: SHAP

Follow-up prompts

  • How can we create a visual dashboard that shows these explanations for every prediction in real time?
  • What are the limitations of SHAP for this model, and are there alternative methods that might be more actionable?
  • Can you compare the model’s global feature importance with a simpler model like logistic regression to spot potential overfitting?