7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a,keras/layers/advanced_activations.py,PReLU,get_output,#PReLU#Any#,38

Before Change



    def get_output(self, train):
        X = self.get_input(train)
        pos = ((X + abs(X)) / 2.0)
        neg = self.alphas * ((X - abs(X)) / 2.0)
        return pos + neg

    def get_config(self):

After Change



    def get_output(self, train):
        X = self.get_input(train)
        pos = T.nnet.relu(X)
        neg = self.alphas * (X - abs(X)) * 0.5
        return pos + neg

    def get_config(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: 7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a
Time: 2015-09-25
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/advanced_activations.py
Class Name: PReLU
Method Name: get_output


Project Name: keras-team/keras
Commit Name: 7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a
Time: 2015-09-25
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/advanced_activations.py
Class Name: LeakyReLU
Method Name: get_output


Project Name: keras-team/keras
Commit Name: 6c458ff28103580bbc3ba3d1acb38dc8e7eb12b2
Time: 2015-11-28
Author: francois.chollet@gmail.com
File Name: keras/layers/advanced_activations.py
Class Name: ELU
Method Name: get_output


Project Name: keras-team/keras
Commit Name: 7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a
Time: 2015-09-25
Author: makoto.matsuyama@gmx.com
File Name: keras/layers/advanced_activations.py
Class Name: PReLU
Method Name: get_output