Algorithm 2 Global Model Training |
-
1:
Input: List of client models
-
2:
Input: Number of clients N
-
3:
Output: Global federated model
-
4:
Initialize an empty list
-
5:
for to N do
-
6:
▹ Make predictions on validation data
-
7:
▹ Aggregate predictions
-
8:
end for
-
9:
▹ Sum predictions across clients
-
10:
▹ Select class with the highest probability
-
11:
Initialize the global federated model
-
12:
Return
|