W3cubDocs

/TensorFlow

Module: tf.keras.constraints

DO NOT EDIT.

This file was autogenerated. Do not edit it by hand, since your modifications would be overwritten.

Classes

class Constraint: Base class for weight constraints.

class MaxNorm: MaxNorm weight constraint.

class MinMaxNorm: MinMaxNorm weight constraint.

class NonNeg: Constrains the weights to be non-negative.

class UnitNorm: Constrains the weights incident to each hidden unit to have unit norm.

class max_norm: MaxNorm weight constraint.

class min_max_norm: MinMaxNorm weight constraint.

class non_neg: Constrains the weights to be non-negative.

class unit_norm: Constrains the weights incident to each hidden unit to have unit norm.

Functions

deserialize(...): Return a Keras constraint object via its config.

get(...): Retrieve a Keras constraint object via an identifier.

serialize(...)

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/constraints