# Module: tf.compat.v1.keras.regularizers

<br />

## Classes

[`class L1`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/L1): A regularizer that applies a L1 regularization penalty.

[`class L1L2`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/L1L2): A regularizer that applies both L1 and L2 regularization penalties.

[`class L2`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/L2): A regularizer that applies a L2 regularization penalty.

[`class Regularizer`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/Regularizer): Regularizer base class.

[`class l1`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/L1): A regularizer that applies a L1 regularization penalty.

[`class l2`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/L2): A regularizer that applies a L2 regularization penalty.

## Functions

[`deserialize(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/deserialize)

[`get(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/get): Retrieve a regularizer instance from a config or identifier.

[`l1_l2(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/l1_l2): Create a regularizer that applies both L1 and L2 penalties.

[`serialize(...)`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/keras/regularizers/serialize)