raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.97k stars 664 forks source link

Implement SmoothGrad #139

Open keisen opened 5 years ago

keisen commented 5 years ago

I suggest to enhance visualize_saliency_with_losses function with SmoothGrad.

https://arxiv.org/pdf/1706.03825.pdf

As the above paper, the SmoothGrad reduce noise of Saliency map. visualize_saliency_with_losses will be added smooth_samples and some options as follow:

visualize_saliency_with_losses(…, smooth_samples=0, smooth_noise=0.25)