Skip to content

Commit

Permalink
fix(examples:skip) Specify min_fit_clients in FedAvg in the Secur…
Browse files Browse the repository at this point in the history
…e Aggregation example (#4247)
  • Loading branch information
panh99 authored Sep 20, 2024
1 parent 02e1813 commit 247cada
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def main(driver: Driver, context: Context) -> None:
strategy = FedAvg(
# Select all available clients
fraction_fit=1.0,
min_fit_clients=5,
# Disable evaluation in demo
fraction_evaluate=(0.0 if is_demo else context.run_config["fraction-evaluate"]),
min_available_clients=5,
Expand Down

0 comments on commit 247cada

Please sign in to comment.