关于Federated learning的实验代码的疑问
Wongcheukwai opened this issue · comments
你好,
请问一下TERM/fair_flearn/flearn/trainers/tilting.py第68行时,前面是否需要加一个1/t*log呢?因为alg4好像是这样写的
We estimate
Thank you for your reply.
I understand you are estimating
Line 68 here (https://github.com/litian96/TERM/blob/master/fair_flearn/flearn/trainers/tilting.py#L68) corresponds to e^{t\tilde{R}_t} in Algorithm 4 in the paper. So the two are equivalent: (a) estimates = 1/t \log (estimates * 0.5 + new * 0.5)
, and use e^{t * estimates}
as the demonimator in the weights w_{t,x} = \frac{e^{tf(x;\theta}}{e^{t\tilde{R}_t}}
, and (b) estimates = estimates * 0.5 + new * 0.5
, and use estimates
as the demoninator. Line 68 is the latter. Does this answer your question?
yes, thank you for your patience!