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

Update sklearn example's server and client #1347

Merged
merged 3 commits into from
Aug 1, 2022

Conversation

gxenos
Copy link
Contributor

@gxenos gxenos commented Jul 29, 2022

Reference Issues/PRs

Fixes #1346

What does this implement/fix? Explain your changes.

Fixes both the server and the client implementations.
Changes the evaluate_fn passed to built-in strategies like FedAvg to take the three parameters required by Flower 1.0.0.
Changes the naming of Weights to NDArrays.
Adds a configuration object of type flwr.server.ServerConfig in the start_server function, containing the num_rounds instead of the old config dictionary.

Any other comments?

I tested it with the run.sh script and it works now

@danieljanes
Copy link
Member

Thanks for the PR @gxenos ! Changes look good, could you please also update the flwr version in pyproject.toml to flwr = "^1.0.0"?

@gxenos
Copy link
Contributor Author

gxenos commented Jul 29, 2022

Thanks for the quick reply. Added the flwr version.

Copy link
Member

@danieljanes danieljanes left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks for the quick update @gxenos !

@danieljanes danieljanes merged commit 0eafca6 into adap:main Aug 1, 2022
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.

sklearn-logreg-mnist example is outdated
2 participants