Bladeren bron

[Fix]: fix typo in config # (#18)

codergan 1 jaar geleden
bovenliggende
commit
e0e84a24a5
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      docs/en/tutorials/config.md
  2. 1 1
      easyfl/config.yaml

+ 2 - 2
docs/en/tutorials/config.md

@@ -186,7 +186,7 @@ server:
   # The strategy to aggregate client uploaded models, options: FedAvg, equal.
     # FedAvg aggregates models using weighted average, where the weights are data size of clients.
     # equal aggregates model by simple averaging.
-  aggregation_stragtegy: "FedAvg"
+  aggregation_strategy: "FedAvg"
   # The content of aggregation, options: all, parameters.
     # all means aggregating models using state_dict, including both model parameters and persistent buffers like BatchNorm stats.
     # parameters means aggregating only model parameters.
@@ -272,7 +272,7 @@ server:
   batch_size: 32
   test_all: True
   random_selection: True
-  aggregation_stragtegy: "FedAvg"
+  aggregation_strategy: "FedAvg"
   aggregation_content: "all"
 
 client:

+ 1 - 1
easyfl/config.yaml

@@ -62,7 +62,7 @@ server:
   # The strategy to aggregate client uploaded models, options: FedAvg, equal.
     # FedAvg aggregates models using weighted average, where the weights are data size of clients.
     # equal aggregates model by simple averaging.
-  aggregation_stragtegy: "FedAvg"
+  aggregation_strategy: "FedAvg"
   # The content of aggregation, options: all, parameters.
     # all means aggregating models using state_dict, including both model parameters and persistent buffers like BatchNorm stats.
     # parameters means aggregating only model parameters.