allennlp.nn.regularizers.regularizers#

L1Regularizer#

L1Regularizer(self, alpha:float=0.01) -> None

Represents a penalty proportional to the sum of the absolute values of the parameters

Registered as a Regularizer with name "l1".

L2Regularizer#

L2Regularizer(self, alpha:float=0.01) -> None

Represents a penalty proportional to the sum of squared values of the parameters

Registered as a Regularizer with name "l2".