-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pfedme Optimizer Probelem #12
Comments
Hi. The line 64 in optimizer is to solve h_i (Equation 7 in our paper) to find the persionalized model. Algorithm 1 line 8 is in userpFedMe.py line 53-54 to find local model. for new_param, localweight in zip(self.persionalized_model_bar, self.local_model): |
Thank you! |
Hello, |
No. I just applied gradient descent for h_i |
But this update looks strange. Can you explain it? Thamk you very much! |
(p.grad.data ) is gradient update for of f_bar |
Hello,
![捕获](https://user-images.githubusercontent.com/46699574/115689145-63347d80-a38e-11eb-9f6d-9a010e131e9e.PNG)
I want to ask:
Why is different, code and _algorithm?
That is in fedoptimizer.py line 64:
p.data = p.data - group['lr'] * (p.grad.data + group['lamda'] * (p.data - localweight.data) + group['mu']*p.data)
and Algorithm 1 line 8
The text was updated successfully, but these errors were encountered: