Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

nsl.configs.GraphRegConfig

View source on GitHub

Class GraphRegConfig

GraphRegConfig contains the configuration for graph regularization.

Attributes:

  • neighbor_config: An instance of GraphNeighborConfig that describes neighbor attributes for graph regularization.
  • multiplier: The multiplier or weight factor applied on the graph regularization loss term. Defaults to 0.01. This value has to be greater than or equal to 0.
  • distance_config: An instance of DistanceConfig to calculate the graph regularization loss term. Defaults to DistanceConfig().

__init__

__init__(
    neighbor_config=attr_dict['neighbor_config'].default,
    multiplier=attr_dict['multiplier'].default,
    distance_config=attr_dict['distance_config'].default
)

Initialize self. See help(type(self)) for accurate signature.

Methods

__eq__

__eq__(other)

Return self==value.

__ge__

__ge__(other)

Automatically created by attrs.

__gt__

__gt__(other)

Automatically created by attrs.

__le__

__le__(other)

Automatically created by attrs.

__lt__

__lt__(other)

Automatically created by attrs.

__ne__

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.