Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Jan 10, 2025
1 parent 755051d commit 24e60c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/cifar100/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
settings = {
"N_CLIENTS": 5,
"DISCOVER_HOST": "localhost",
"DISCOVER_HOST": "api-server",
"DISCOVER_PORT": 8092,
"SECURE": False,
"VERIFY": False,
Expand Down
3 changes: 1 addition & 2 deletions fedn/network/combiner/aggregators/fedopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def _update_pseudo_gradient(
else:
pseudo_gradient_next = helper.subtract(model_next, model_old)
pseudo_gradient = helper.increment_average(
pseudo_gradient, pseudo_gradient_next, metadata["num_examples"], total_examples
)
pseudo_gradient, pseudo_gradient_next, metadata["num_examples"], total_examples)
return pseudo_gradient, model_old

def _apply_server_optimizer(
Expand Down

0 comments on commit 24e60c5

Please sign in to comment.