2.1.8. aijack.defense.soteria package#

2.1.8.1. Submodules#

2.1.8.2. aijack.defense.soteria.soteria_client module#

class aijack.defense.soteria.soteria_client.SoteriaClientManager(*args, **kwargs)[source]#

Bases: aijack.manager.base.BaseManager

attach(cls)[source]#
aijack.defense.soteria.soteria_client.attach_soteria_to_client(cls, input_layer, perturbed_layer, epsilon=0.2, target_layer_name=None)[source]#

Attaches the Soteria wrapper to the client class.

Parameters
  • cls – The client class to which Soteria will be attached.

  • input_layer (str) – Name of the input layer.

  • perturbed_layer (str) – Name of the perturbed layer.

  • epsilon (float, optional) – Privacy budget epsilon. Defaults to 0.2.

  • target_layer_name (str, optional) – Name of the target layer. Defaults to None.

Returns

Client class with Soteria wrapper attached.

Return type

class

2.1.8.3. Module contents#