Missed TensorFlow World? Check out the recap. Learn more

nsl.configs.AdvRegConfig

View source on GitHub

Class AdvRegConfig

Contains configuration for adversarial regularization.

Attributes:

  • multiplier: multiplier to adversarial regularization loss. Default set to 0.2.
  • adv_neighbor_config: an nsl.configs.AdvNeighborConfig object for generating adversarial neighbor examples.

__init__

__init__(
    multiplier=attr_dict['multiplier'].default,
    adv_neighbor_config=attr_dict['adv_neighbor_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.