Closed NookLook2014 closed 2 years ago
Hello,
Thank you for your question. I think this issue is similar to #1. Please let me know if #1 does not answer your question.
I also want to add that directly performing the weighted average of the sampled clients with the initial weights is not correct in general, instead you need to reweight the clients as done in (Li et al., 2019, Table~1) for example.
I hope this answers your question. Please let me know if I am missing something.
Ok, thanks for your reply
In th aggregator.py, for the method "mix" in class CentralizedAggregator(Aggregator). I found that the average_learners method takes all clients as input rather than the sampled clients. Is that reasonable? Since clients are sampled each round, i believe it should be better to average thosed sampled clients, then update the averaged global model to all clients.