7a2e8ce8a2970fe42d7c0e7db5024d4bc812d71a,keras/layers/advanced_activations.py,LeakyReLU,get_output,#LeakyReLU#Any#,13
Before Change
def get_output(self, train):
X = self.get_input(train)
return ((X + abs(X)) / 2.0) + self.alpha * ((X - abs(X)) / 2.0)
def get_config(self):
return {"name": self.__class__.__name__,
"alpha": self.alpha}
After Change
def get_output(self, train):
X = self.get_input(train)
return T.nnet.relu(X, self.alpha)
def get_config(self):
return {"name": self.__class__.__name__,
"alpha": self.alpha}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: 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/activations.py
Class Name:
Method Name: relu
Project Name: keras-team/keras
Commit Name: f0d9867d09be9aad4d42aba9d2ec5a9a020037f7
Time: 2016-09-22
Author: kilotaras@gmail.com
File Name: keras/layers/advanced_activations.py
Class Name: ELU
Method Name: call