constraint_unitnorm {keras3} | R Documentation |
Constrains the weights incident to each hidden unit to have unit norm.
constraint_unitnorm(axis = 1L)
axis |
integer, axis along which to calculate weight norms.
For instance, in a |
A Constraint
instance, a callable that can be passed to layer
constructors or used directly by calling it with tensors.
Other constraints:
Constraint()
constraint_maxnorm()
constraint_minmaxnorm()
constraint_nonneg()