6c458ff28103580bbc3ba3d1acb38dc8e7eb12b2,keras/layers/advanced_activations.py,ELU,get_output,#ELU#Any#,62
Before Change
def get_output(self, train):
X = self.get_input(train)
return ((X + abs(X)) / 2.0) + self.alpha * (T.exp((X - abs(X)) / 2.0) - 1)
def get_config(self):
config = {"name": self.__class__.__name__,
After Change
self.alpha = alpha
def get_output(self, train):
X = self.get_input(train)
pos = K.relu(X)
neg = (X - abs(X)) * 0.5
return pos + self.alpha * (K.exp(neg) - 1.)
def get_config(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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: LeakyReLU
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
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