Learn R Programming

keras3 (version 1.3.0)

constraint_nonneg: Constrains the weights to be non-negative.

Description

Constrains the weights to be non-negative.

Usage

constraint_nonneg()

Arguments

Value

A Constraint instance, a callable that can be passed to layer constructors or used directly by calling it with tensors.

See Also

Other constraints:
Constraint()
constraint_maxnorm()
constraint_minmaxnorm()
constraint_unitnorm()