Args

l1 regularization amount. Either single float or list or tuple of
floats to specify different regularization amount per dimension. The
amount of regularization for the interaction term between two dimensions
is the product of the corresponding per dimension amounts.

l2

l2 regularization amount. Either single float or list or tuple of
floats to specify different regularization amount per dimension. The
amount of regularization for the interaction term between two dimensions
is the product of the corresponding per dimension amounts.

Methods

from_config

@classmethodfrom_config(
config
)

Creates a regularizer from its config.

This method is the reverse of get_config,
capable of instantiating the same regularizer from the config
dictionary.

This method is used by Keras model_to_estimator, saving and
loading models to HDF5 formats, Keras model cloning, some visualization
utilities, and exporting models to and from JSON.