Home▸AI & Machine Learning▸Explainable AI Lab - 2D Contour Map, LIME Samples and Attribution Bars

Explainable AI Lab - 2D Contour Map, LIME Samples and Attribution Bars

The same explanation experiment as a flat contour map of the model over two features with the LIME bead cloud, the surrogate and true gradient arrows, and grouped bars for exact Shapley, sampled Shapley, LIME, gradient x input and Integrated Gradients. Same model and checks as the 3D bench.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Explainable AI Lab - 2D Contour Map, LIME Samples and Attribution Bars ↗ Open standalone

Open the black box of a small neural scorer and compare four ways to explain a single prediction. Six features feed a fixed network; its output over any two features is a landscape on a lab bench, and the case being explained is a pin on it. LIME perturbs the case with a Gaussian cloud of beads (size = kernel weight, height = true model output), fits a kernel-weighted linear surrogate (the cyan plane) and reports its fidelity. Exact Shapley values come from all 64 feature coalitions, a permutation sampler converges to them live with a 1/sqrt(M) error trace, and gradient x input and Integrated Gradients complete the comparison. Shrink the neighbourhood and LIME collapses onto the gradient; widen it and the surrogate smooths the curvature. Numerical checks: Shapley efficiency, coalition formula vs all 720 orderings, closed form for linear models, dummy and symmetry axioms, Monte-Carlo z-scores, LIME on a linear model, back-propagated gradient vs finite differences and Integrated Gradients completeness.

⚙ Under the hood

The same explanation experiment as a flat contour map of the model over two features with the LIME bead cloud, the surrogate and true gradient arrows, and grouped bars for exact Shapley, sampled Shapley, LIME, gradient x input and Integrated Gradients. Same model and checks as the 3D bench.

Explainable AILIMEShapley ValuesFeature AttributionIntegrated GradientsModel InterpretabilityLocal SurrogateMachine Learning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)