Missed TensorFlow World? Check out the recap. Learn more

tf.keras.constraints.NonNeg

View source on GitHub

Class NonNeg

Constrains the weights to be non-negative.

Inherits From: Constraint

Aliases:

  • Class tf.compat.v1.keras.constraints.NonNeg
  • Class tf.compat.v1.keras.constraints.non_neg
  • Class tf.compat.v2.keras.constraints.NonNeg
  • Class tf.compat.v2.keras.constraints.non_neg
  • Class tf.keras.constraints.non_neg

Methods

__call__

View source

__call__(w)

Call self as a function.

get_config

View source

get_config()