ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.regularizers.L1L2

TensorFlow 2 version View source on GitHub

Regularizer for L1 and L2 regularization.

Inherits From: Regularizer

l1 Float; L1 regularization factor.
l2 Float; L2 regularization factor.

Methods

from_config

View source

get_config

View source

__call__

View source

Call self as a function.