5.1.1.1.1.2. FedEval.aggregator.bulyan

5.1.1.1.1.2.1. Module Contents

5.1.1.1.1.2.1.1. Functions

bulyan(→ FedEval.aggregator.ModelWeight.ModelWeights)

Bulyan aggregation method.

FedEval.aggregator.bulyan.bulyan(params: Iterable[FedEval.aggregator.ModelWeight.ModelWeights], ratio: float = 0.05, select: int | None = 1, dist_metric: str = 'euclidean') FedEval.aggregator.ModelWeight.ModelWeights

Bulyan aggregation method.

Parameters:
  • params (Iterable[ModelWeights]) – List of model weights.

  • ratio (float) – Ratio of params to be trimmed. Defaults to 0.05.

  • select (Optional[int], optional) – Number of clients to be selected. Defaults to 1.

  • dist_metric (str, optional) – Distance metric. Defaults to ‘euclidean’.

Raises:

ValueError – Invalid number of selected params, or invalid trim ratio.

Returns:

Aggregated model weights.

Return type:

ModelWeights