Skip to main content

aggregator

Vanilla model parameter aggregators for Federated Averaging.

Classes

Aggregator

class Aggregator(**kwargs: Any):

Vanilla model parameter aggregator for Federated Averaging.

Performs simple arithmetic mean of unencrypted model parameters.

Attributes

  • name: The name of the aggregator.
danger

This aggregator is not secure. Algorithm outputs are shared with participants in an unencrypted manner. It is not recommended to use this aggregator in a zero-trust setting.

Ancestors

  • bitfount.federated.aggregators.base._BaseAggregatorFactory
  • bitfount.federated.aggregators.base._AggregatorWorkerFactory
  • abc.ABC
  • bitfount.types._BaseSerializableObjectMixIn
  • bitfount.federated.roles._RolesMixIn

Methods


def modeller(    self, **kwargs: Any,)> bitfount.federated.aggregators.aggregator._ModellerSide:

Returns the modeller side of the Aggregator.

def worker(self, **kwargs: Any)> bitfount.federated.aggregators.aggregator._WorkerSide:

Returns the worker side of the Aggregator.

Variables

  • static nested_fields : ClassVar[Dict[str, Mapping[str, Any]]]