p2pfl.learning.aggregators.fedmedian moduleΒΆ
Federated Median (FedMedian) Aggregator.
- class p2pfl.learning.aggregators.fedmedian.FedMedian(node_name='unknown')[source]ΒΆ
Bases:
Aggregator
Federated Median (FedMedian) [Yin et al., 2018].
Paper: https://arxiv.org/pdf/1803.01498v1.pdf
- aggregate(models)[source]ΒΆ
Compute the median of the models.
- Parameters:
models (
List
[P2PFLModel
]) β Dict with the models (node: model, num_samples).- Return type:
- Returns:
A P2PFLModel with the aggregated