MinMaxNorm weight constraint.
Inherits From: Constraint
View aliases
Main aliases
tf.keras.constraints.min_max_norm
See Migration guide for more details.
`tf.compat.v1.keras.constraints.MinMaxNorm`, `tf.compat.v1.keras.constraints.min_max_norm`
tf.keras.constraints.MinMaxNorm(
min_value=0.0, max_value=1.0, rate=1.0, axis=0
)
Constrains the weights incident to each hidden unit to have the norm between a lower bound and an upper bound.
Also available via the shortcut function
tf.keras.constraints.min_max_norm
.
Methods
from_config
@classmethod
from_config( config )
Instantiates a weight constraint from a configuration dictionary.
Example:
constraint = UnitNorm()
config = constraint.get_config()
constraint = UnitNorm.from_config(config)
Args | |
---|---|
config
|
A Python dictionary, the output of get_config .
|
Returns | |
---|---|
A tf.keras.constraints.Constraint instance.
|