Skip to content

Commit

Permalink
codecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Jan 24, 2024
1 parent f000351 commit d6049ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/notebooks/API_Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 10,
"id": "743dfe47",
"metadata": {},
"outputs": [],
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 11,
"id": "1061722d",
"metadata": {},
"outputs": [],
Expand All @@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 15,
"id": "5107f6f9",
"metadata": {},
"outputs": [],
Expand All @@ -76,7 +76,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 17,
"id": "f0380d35",
"metadata": {},
"outputs": [],
Expand Down
2 changes: 1 addition & 1 deletion fedn/fedn/network/combiner/aggregators/fedavg.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def combine_models(self, helper=None, delete_models=True):
if delete_models:
self.modelservice.models.delete(model_update.model_update_id)
logger.info(
"AGGREGATOR({}): Deleted model update {} from storage.".format(self.name, model_id))
"AGGREGATOR({}): Deleted model update {} from storage.".format(self.name, model_update.model_update_id))
self.model_updates.task_done()
except Exception as e:
logger.error(
Expand Down
4 changes: 2 additions & 2 deletions fedn/fedn/network/combiner/aggregators/fedopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def combine_models(self, helper=None, delete_models=True):
nr_aggregated_models += 1
# Delete model from storage
if delete_models:
self.modelservice.models.delete(model_update.model_id)
self.modelservice.models.delete(model_update.model_update_id)
logger.info(
"AGGREGATOR({}): Deleted model update {} from storage.".format(self.name, model_id))
"AGGREGATOR({}): Deleted model update {} from storage.".format(self.name, model_update.model_update_id))
self.model_updates.task_done()
except Exception as e:
logger.error(
Expand Down

0 comments on commit d6049ea

Please sign in to comment.