

def __init__(self, l1=0.0, l2=0.0, **kwargs):
    self.supports_masking = True
    self.l1 = l1
    self.l2 = l2
    activity_regularizer = ActivityRegularizer(l1=l1, l2=l2)
    activity_regularizer.set_layer(self)
    self.regularizers = [activity_regularizer]
    super(ActivityRegularization, self).__init__(**kwargs)

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py ActivityRegularization.__init__/original