efe72ef433852b1d7d54f283efff53085ec4f756,keras/regularizers.py,L1L2,__call__,#L1L2#Any#,37
Before Change
if self.l1:
regularization += K.sum(self.l1 * K.abs(x))
if self.l2:
regularization += K.sum(self.l2 * K.square(x))
return regularization
def get_config(self):
After Change
if self.l1:
regularization += self.l1 * K.sum(K.abs(x))
if self.l2:
regularization += self.l2 * K.sum(K.square(x))
return regularization
def get_config(self):
return {"l1": float(self.l1),
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: efe72ef433852b1d7d54f283efff53085ec4f756
Time: 2019-07-23
Author: qweytr_1@163.com
File Name: keras/regularizers.py
Class Name: L1L2
Method Name: __call__
Project Name: GPflow/GPflow
Commit Name: d955dd84d277855bb734fa205bb5f176e888eea7
Time: 2017-10-01
Author: art.art.v@gmail.com
File Name: gpflow/densities.py
Class Name:
Method Name: gaussian
Project Name: keras-team/keras
Commit Name: 2788b60fe67bbcfd243cd0915cf249c568984996
Time: 2016-07-21
Author: francois.chollet@gmail.com
File Name: keras/regularizers.py
Class Name: WeightRegularizer
Method Name: __call__
Project Name: keras-team/keras
Commit Name: 2788b60fe67bbcfd243cd0915cf249c568984996
Time: 2016-07-21
Author: francois.chollet@gmail.com
File Name: keras/regularizers.py
Class Name: ActivityRegularizer
Method Name: __call__