Skip to content

Commit

Permalink
Improve logging for Federator aggregration
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Sep 18, 2022
1 parent 9ebc444 commit 2bcc95b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fltk/core/federator.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def all_futures_done(futures: List[torch.Future]) -> bool: # pylint: disable=no
time.sleep(3)

updated_model = self.aggregation_method(client_weights, client_sizes)
self.logger.info(f"Aggregrating: {len(client_weights)} updates, using {self.config.aggregation}")
self.update_nn_parameters(updated_model)

test_accuracy, test_loss, conf_mat = self.test(self.net)
Expand Down

0 comments on commit 2bcc95b

Please sign in to comment.