powered by
Constrains the weights to be non-negative.
constraint_nonneg()
A Constraint instance, a callable that can be passed to layer constructors or used directly by calling it with tensors.
Constraint
https://keras.io/api/layers/constraints#nonneg-class
Other constraints: Constraint() constraint_maxnorm() constraint_minmaxnorm() constraint_unitnorm()
Constraint()
constraint_maxnorm()
constraint_minmaxnorm()
constraint_unitnorm()