671ee67a03bd5bebf4c405af59eec45d3ca2a288,deeplift/blobs/core.py,BatchNormalization,_get_mxts_increments_for_inputs,#BatchNormalization#,779

Before Change


    def _get_mxts_increments_for_inputs(self):
        //self.reshaped_gamma and reshaped_std are created during
        //the call to _build_activation_vars in _built_fwd_pass_vars
        return self.get_mxts()*self.reshaped_gamma/self.reshaped_std 


class Merge(ListInputMixin, Node):

After Change


        //self.reshaped_gamma and reshaped_std are created during
        //the call to _build_activation_vars in _built_fwd_pass_vars
        pos_mxts_increments = (
          self.get_pos_mxts()*
            (self.reshaped_gamma*(self.reshaped_gamma>0.0)/
             (self.reshaped_std+self.epsilon))
          +self.get_neg_mxts()*
            (self.reshaped_gamma*(self.reshaped_gamma<0.0)/
             (self.reshaped_std+self.epsilon)))
        neg_mxts_increments = (
          self.get_pos_mxts()*
            (self.reshaped_gamma*(self.reshaped_gamma<0.0)/
             (self.reshaped_std+self.epsilon))
          +self.get_neg_mxts()*
            (self.reshaped_gamma*(self.reshaped_gamma>0.0)/
             (self.reshaped_std+self.epsilon)))
        return pos_mxts_increments, neg_mxts_increments


class Merge(ListInputMixin, Node):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/core.py
Class Name: BatchNormalization
Method Name: _get_mxts_increments_for_inputs


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/convolution.py
Class Name: MaxPool2D
Method Name: _get_mxts_increments_for_inputs


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/core.py
Class Name: NoOp
Method Name: _get_mxts_increments_for_inputs