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

Add FedTrimmedMean strategy #1769

Merged
merged 13 commits into from
May 8, 2023
Merged

Conversation

m-danilow
Copy link
Contributor

Reference Issues/PRs

#1610

What does this implement/fix? Explain your changes.

A strategy that removes the indicated percentage of the largest and smallest weights from the local models received by the server and finally averages their values to create a new global model

Any other comments?

Please check TODO comments and I would also need some guidance in fixing CI ;)

@edogab33
Copy link
Contributor

edogab33 commented Apr 8, 2023

Hi @m-danilow, I'm not a team of Flower (just a simple contributor) but I've posted some comments to help you with the PR. Hope you find them useful.

@m-danilow
Copy link
Contributor Author

Hi @edogab33, Thank you for your input, I modified part of the code as suggested :)

@danieljanes
Copy link
Member

Thanks for the PR @m-danilow & thanks for the early review @edogab33 !

At first glance, the PR seems to be in good shape. Let me know if you need help with getting the CI to pass.

@m-danilow
Copy link
Contributor Author

Hi @danieljanes, Yes, I would need help because when I execute the docformatter command locally it doesn't return me any errors...

@adam-narozniak adam-narozniak self-assigned this May 5, 2023
@adam-narozniak
Copy link
Member

Hi @m-danilow! I will merge your PR into a new branch, so I can make modifications to fix the tests before merging it into main. Thanks for your contribution! 🌼

@adam-narozniak adam-narozniak changed the base branch from main to add-fed-trimmed-mean May 8, 2023 09:16
@adam-narozniak adam-narozniak merged commit e39815f into adap:add-fed-trimmed-mean May 8, 2023
danieljanes pushed a commit that referenced this pull request May 19, 2023
Co-authored-by: Michał <92364784+m-danilow@users.noreply.github.com>
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.

4 participants