NonNeg

public class NonNeg

Constrains the weights to be non-negative.

Inherited Constants

Public Constructors

NonNeg (Ops tf)
Create a NonNeg constraint

Public Methods

<T extends TNumber > Operand <T>
call ( Operand <T> weights)
Applies the constraint against the provided weights

Inherited Methods

Public Constructors

public NonNeg (Ops tf)

Create a NonNeg constraint

Parameters
tf the TensorFlow Ops

Public Methods

public Operand <T> call ( Operand <T> weights)

Applies the constraint against the provided weights

Parameters
weights the weights
Returns
  • the constrained weights