AIToday
Qiita 機械学習Published: Sep 28, 2026, 13:00 JST

Qiita G-test guide demystifies CAM, LIME and SHAP

Qiita G-test guide demystifies CAM, LIME and SHAP

3 Key Points

  1. What happened

    A Qiita guide for the G-test exam lays out four explainable-AI methods — CAM, Permutation Importance, LIME and SHAP — illustrating SHAP by splitting a cafe's ¥150,000 forecast into +¥40,000 holiday, +¥20,000 sunshine and −¥10,000 construction noise.

  2. Why it matters

    The guide frames XAI as essential for using AI safely and trustworthily in critical fields like business, medicine and finance, so readers can compare how each method translates an AI's reasoning for humans.

  3. What to watch

    The payoff hinges on matching each method to the right question — CAM for where an image model looked, SHAP for how much each factor contributed — and on whether candidates can grasp these approach differences for the exam.

WHO IT HITSG-test candidates and non-engineers studying AI governance gain a plain-language map of four XAI techniques, which may help them interpret or question model outputs in business, medical or financial settings.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The article is framed as preparation material for the G-test, a Japanese certification on AI literacy, and it groups four techniques by their core idea rather than by math. CAM targets image models, especially CNNs, and highlights the pixels behind a decision as a thermography-like heatmap; the guide notes the more general Grad-CAM as a well-known extension. Permutation Importance works from the other direction, shuffling one feature at a time and reading importance off the accuracy loss.

LIME and SHAP shift from the model to the individual prediction. LIME generates similar dummy data around one case and approximates it with something simple like linear regression or a decision tree, while SHAP borrows the Shapley value from cooperative game theory to divide up each feature's contribution. The guide's cafe example makes SHAP's arithmetic concrete, and its closing summary table lines each method up with its G-test keywords.

The piece closes by arguing XAI is indispensable for using AI safely and trustworthily in business, medical and financial fields. Whether that argument lands for a given team likely depends on whether they can first match the method to the question they need answered — where an image model looked, or how much each factor moved a forecast.

FAQ
What does SHAP actually output?
It shows how much each feature pushed a prediction up or down. For a cafe's ¥150,000 forecast, SHAP assigns +¥40,000 to the holiday, +¥20,000 to sunshine and −¥10,000 to construction noise.
How is LIME different from CAM?
LIME focuses on one data point and approximates it with a simple local model, while CAM visualizes where an image model looked using a heatmap. LIME is model-agnostic; CAM is mainly used with CNNs.
How does Permutation Importance measure a feature?
It shuffles one feature's values and checks how much accuracy drops. A big drop means the feature mattered; little change means it barely influenced the prediction.
Qiita 機械学習Read Original Article

Get AI news like this every morning

For example, today's edition would include:

  • AWS CloudWatch Omni now generally available with 17 built-in evaluatorsSiliconANGLE AI · 2h ago
  • For robots, mapping a factory floor is only the startDIGITIMES Asia · 2h ago
  • AI companion chatbot addiction: teens log 89 hours a week, study findsITmedia AI+ · 2h ago

AI-summarized, only the topics you pick: one digest a day via Email, LINE, or Slack.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleClaude and Codex Reviews of Same Code Agree on Nothing