How it Works
The network is a real 4→6→4→1 feed-forward network with fixed, hand-seeded weights — it takes four normalised loan-application features and outputs an approval probability through two tanh hidden layers and a sigmoid output. In "black box" mode you only see the input sliders and the final probability; a solid dark shell hides everything in between, exactly like a production model behind an API.
Pressing "Reveal explanation" doesn't just make the shell transparent — it runs a genuine (if simplified) attribution pass: for every feature, the engine reruns the same network with only that feature swapped back to a neutral baseline of 0.5, and measures how much the output moves. That movement is the feature's attribution, colour-coded green (pushed toward approval) or red (pushed toward denial) on the edges leaving that input node.
Frequently Asked Questions
What's the difference between AI Explainability and Interpretability?
Interpretability focuses on understanding a model's internal workings, while explainability is about providing justifications for specific predictions.
Can I fully trust an XAI system?
XAI systems provide insights, but they are not infallible. It's crucial to critically evaluate the explanations and consider potential biases.
How does XAI relate to fairness in AI?
By identifying biased features or decision-making patterns, XAI can help ensure that AI systems treat different groups fairly.
What does the "coverage" stat mean?
It compares the sum of the four single-feature attributions against the network's actual total output change versus the neutral baseline. Anything below 100% is non-linear interaction between features — the part no single-feature attribution method fully captures.
Why does the black box shell matter here?
It visualises the core problem this simulation is about: a deep network's hidden layers are, by default, opaque. Attribution methods like the one shown don't physically open the box — they infer influence purely from input/output behaviour.