How to extract the reason behind a prediction using TensorFlow?
[updated]

You are looking for GradCam.

Code:


https://fairyonice.github.io/Grad-CAM-with-keras-vis.html
https://tf-explain.readthedocs.io/en/latest/index.html


Paper: https://arxiv.org/abs/1610.02391

This is a good resource I found
https://christophm.github.io/interpretable-ml-book/