🧪 Artificial Intelligence Ai Explainability Simulation
Interactive explainable-AI simulator: watch a gradient-based counterfactual search find the smallest input change that flips a classifier's decision, over a live 3D probability surface with a feature-attribution readout.
Explainable AI is not only about showing why a model made a decision — it is often more useful to show what would need to change to get a different one. This simulator renders a small logistic-regression classifier's decision surface in 3D, lets you place an applicant point anywhere in feature space and read a live gradient-based feature-attribution breakdown, then runs a real counterfactual search: gradient descent on a distance-penalized objective that finds the smallest input change needed to flip the model's decision, animated as a path climbing the probability surface toward the boundary. A sparsity weight controls how strongly the search favors a small, actionable change over simply maximizing confidence, and a "new model" control reshapes the whole decision surface to show the explanation adapting to a different classifier.
This simulation demonstrates the importance of explainable AI (XAI). It explores how to understand and interpret the decisions made by complex AI models, increasing trust and accountability.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install