I have multiple samples of one-dimensional inputs being classified in two classes, 0 and 1. I would like to know which parts of the signal are responsible for each of these classes, respectively, and how high is the influence of the signal parts.
A simple Keras CNN is used as classification model, and the saliency computed in the following way:
Question 1: The imshow used in the examples does not work for 1D samples, so I tried plotting it differently. I am however unsure if I should compute the mean over the grads dimensions, or how should I treat the 3 dimensions ofgrads. At the moment I have:
I have multiple samples of one-dimensional inputs being classified in two classes, 0 and 1. I would like to know which parts of the signal are responsible for each of these classes, respectively, and how high is the influence of the signal parts.
A simple Keras CNN is used as classification model, and the saliency computed in the following way:
Question 1: The
imshow
used in the examples does not work for 1D samples, so I tried plotting it differently. I am however unsure if I should compute the mean over thegrads
dimensions, or how should I treat the 3 dimensions ofgrads
. At the moment I have:Question 2: How should I proceed to do it label-specific, i.e. which signal parts are responsible for each label?