2.1.4. aijack.defense.foolsgold package#

2.1.4.1. Submodules#

2.1.4.2. aijack.defense.foolsgold.server module#

class aijack.defense.foolsgold.server.FoolsGoldServerManager(*args, **kwargs)[source]#

Bases: aijack.manager.base.BaseManager

Manager class for FoolsGold proposed in https://arxiv.org/abs/1808.04866.

attach(cls)[source]#

Wraps the given class in FoolsGoldServerWrapper.

Returns

a class wrapped in FoolsGoldServerWrapper

Return type

cls

aijack.defense.foolsgold.server.attach_foolsgold_to_server(cls)[source]#

Wraps the given class in FoolsGoldServerWrapper.

Returns

a class wrapped in FoolsGoldServerWrapper

Return type

cls

aijack.defense.foolsgold.server.calculate_cs(cs, num_clients, aggregate_historical_gradients)[source]#
aijack.defense.foolsgold.server.normalize_cs(cs, v, num_clients)[source]#

2.1.4.3. Module contents#