1.1.3. aijack.attack.freerider package#

1.1.3.1. Submodules#

1.1.3.2. aijack.attack.freerider.freerider module#

class aijack.attack.freerider.freerider.FreeRiderClientManager(*args, **kwargs)[source]#

Bases: aijack.manager.base.BaseManager

Manager class for Free-Rider Attack (https://arxiv.org/abs/1911.12560)

attach(cls)[source]#

Wraps the given class in FreeRiderClientWrapper.

Returns

a class wrapped in FreeRiderClientWrapper

Return type

cls

aijack.attack.freerider.freerider.attach_freerider_to_client(cls, mu, sigma)[source]#

Wraps the given class in FreeRiderClientWrapper.

Parameters
  • mu (float) – mean of the gaussian distribution used to generate fake gradients

  • sigma (float) – standard deviation of the gaussian distribution used to generate fake gradients

Returns

a class wrapped in FreeRiderClientWrapper

Return type

cls

1.1.3.3. Module contents#

class aijack.attack.freerider.FreeRiderClientManager(*args, **kwargs)[source]#

Bases: aijack.manager.base.BaseManager

Manager class for Free-Rider Attack (https://arxiv.org/abs/1911.12560)

attach(cls)[source]#

Wraps the given class in FreeRiderClientWrapper.

Returns

a class wrapped in FreeRiderClientWrapper

Return type

cls