5.2 Algorithm - FedAvg

    Implement Federated Averaging (FedAvg) algorithm[1].

        

    Parameters

    • factors (str, optional) - aggregation weight mode (default: "weighted")
      • "weighted": weighted average based on the size of local datasets
      • "arithmetic": arithmetic average
      • "self-defined": weighted average according to user-defined weights

    Reference

    [1] McMahan, Brendan, et al. "Communication-efficient learning of deep networks from decentralized data." Artificial intelligence and statistics. PMLR, 2017.


    The user interface of FedAvg algorithm:

    Taiwan AI Labs (AILabs.tw) Copyright © 2023Powered by Bludit