tf.keras.regularizers.l1

Create a regularizer that applies an L1 regularization penalty.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.keras.regularizers.l1

The L1 regularization penalty is computed as:

1penalty=1i=0n|xi|

l Float; L1 regularization factor.

An L1 Regularizer with the given regularization factor.