2491af9de0dd8d20c4bb8236d9c51cdb33f14060,deepexplain/tensorflow/methods.py,GradientXInput,get_symbolic_attribution,#GradientXInput#,155

Before Change


class GradientXInput(GradientBasedMethod):

    def get_symbolic_attribution(self):
        return tf.gradients(self.T, self.X)[0] * self.X



Integrated Gradients

After Change


class GradientXInput(GradientBasedMethod):

    def get_symbolic_attribution(self):
        return [g * x for g, x in zip(
            tf.gradients(self.T, self.X),
            self.X if self.has_multiple_inputs else [self.X])]



Integrated Gradients
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: marcoancona/DeepExplain
Commit Name: 2491af9de0dd8d20c4bb8236d9c51cdb33f14060
Time: 2018-02-23
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: GradientXInput
Method Name: get_symbolic_attribution


Project Name: marcoancona/DeepExplain
Commit Name: 2491af9de0dd8d20c4bb8236d9c51cdb33f14060
Time: 2018-02-23
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: DeepLIFTRescale
Method Name: get_symbolic_attribution


Project Name: marcoancona/DeepExplain
Commit Name: 2491af9de0dd8d20c4bb8236d9c51cdb33f14060
Time: 2018-02-23
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: EpsilonLRP
Method Name: get_symbolic_attribution


Project Name: marcoancona/DeepExplain
Commit Name: 2491af9de0dd8d20c4bb8236d9c51cdb33f14060
Time: 2018-02-23
Author: marco.ancona@inf.ethz.ch
File Name: deepexplain/tensorflow/methods.py
Class Name: GradientXInput
Method Name: get_symbolic_attribution