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

fix: update fedavg to properly weight clients #5

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

camille-004
Copy link
Owner

@camille-004 camille-004 commented Dec 8, 2024

Previously, FedAvg was just using equal weights. Also updated example to use different local dataset sizes.

Made _compute_weights and abstract class and implemented based on local dataset size in FedAvg class.

Also, now storing the client weights in metrics_*.json.

@camille-004 camille-004 added the bug Something isn't working label Dec 8, 2024
@camille-004 camille-004 self-assigned this Dec 8, 2024
@camille-004 camille-004 merged commit 6533fd1 into main Dec 8, 2024
2 of 3 checks passed
@camille-004 camille-004 deleted the cd/fedavg-weights branch December 8, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant