|
Algorithm 1 FedAvg [210] |
| Input: |
| : Maximum number of global iterations, n: The total number of participating clients, m: The number of clients used in each global iteration, : The number of local epochs, and : The local learning rate. |
| Output: |
| Global model weight
|
| Processing: |
| 1: [Central Server] |
| 2: Initialize
|
| 3: for each iteration t from 1 to do
|
| 4: includes m clients randomly selected from the n clients |
| 5: for each client in parallel do
|
| 6:
|
| 7: end for
|
| 8:
|
| 9: end for
|
| 10: [Each Participating Client] |
| 11: : |
| 12: is the set of batches for the local dataset
|
| 13: for each epoch j from 1 to do
|
| 14: for each batch do
|
| 15:
|
| 16: end for
|
| 17: end for
|
| 18: return the weights and
|