Skip to content
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

feddyn algorithm correction #401

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

GustavBaumgart
Copy link
Collaborator

The FedDyn algorithm does not send out the same model for training as it uses for evaluation. This is now implemented in this PR.

The labels will be changed to type long before being sent to the loss function in order to avoid NaN values as output.

Lastly, the FedDynRegularizer class now has a .to(device) method in order to transfer the information as needed for subprocesses that use the GPU.

The FedDyn algorithm does not send out the same model for training as it uses for evaluation.
This is now implemented in this PR.

The labels will be changed to type long before being sent to the loss function in order to avoid NaN values as output.

Lastly, the FedDynRegularizer class now has a .to(device) function in order to transfer the information as needed for subprocesses that use the GPU.
@codecov-commenter
Copy link

Codecov Report

Merging #401 (60d2479) into main (21bf040) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #401   +/-   ##
=======================================
  Coverage   15.15%   15.15%           
=======================================
  Files          48       48           
  Lines        2778     2778           
=======================================
  Hits          421      421           
  Misses       2328     2328           
  Partials       29       29           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@myungjin myungjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@GustavBaumgart GustavBaumgart merged commit 7f6b2b8 into cisco-open:main Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants