Giter Club home page Giter Club logo

Comments (6)

CharlieDinh avatar CharlieDinh commented on July 21, 2024

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):
localweight.data = localweight.data - self.lamda* self.learning_rate * (localweight.data - new_param.data)

from pfedme.

adam4096 avatar adam4096 commented on July 21, 2024

Thank you!

from pfedme.

adam4096 avatar adam4096 commented on July 21, 2024

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):
localweight.data = localweight.data - self.lamda* self.learning_rate * (localweight.data - new_param.data)

Hello,
For the line 64 in optimizer is to solve h_i, do you modify the NAG to find the personalized model?
It doesn't look like a standard NAG update formula.

from pfedme.

CharlieDinh avatar CharlieDinh commented on July 21, 2024

No. I just applied gradient descent for h_i

from pfedme.

adam4096 avatar adam4096 commented on July 21, 2024

No. I just applied gradient descent for h_i

But this update looks strange. Can you explain it? Thamk you very much!
p.data = p.data - group['lr'] * (p.grad.data + group['lamda'] * (p.data - localweight.data) + group['mu']*p.data)

from pfedme.

CharlieDinh avatar CharlieDinh commented on July 21, 2024

(p.grad.data ) is gradient update for of f_bar
(group['lamda'] * (p.data - localweight.data) is gradient for moreau envelopes regularization term
group['mu']*p.data is just norm 2 regularizartion, but mu = 0 mean we don;t use it
so (p.grad.data + group['lamda'] * (p.data - localweight.data)) is gradient of h_i

from pfedme.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.