Skip to main content
. 2022 Jan 17;22(2):684. doi: 10.3390/s22020684
Algorithm 3 Dynamic Asynchronous Federated Averaging (FedDasync)
01. Server Process:
02. Input: α(0,1)
03. Initialize the global model: w0,αtα,βkDkD
04. Scheduler Thread:
05. Scheduler periodically triggers some training tasks on some clients, and sents them
06. from the latest global model with time stamp.
07. Updater Thread:
08. for each round t=1,2 do
09.     θ=KMeans(timeList,K)
10.     loop for θ dynamic seconds after receiving update
11.     Receive the pair (xnew,τ) from any client
12.     timeList.append (tτ)
13.     γtα×S(tτ)×βk,S() is function of stateness
14.     xt=(1γt)xt1+γtxnew
15.     end loop
16.     xtk=1Knnkxtk
17. end for