Skip to content

Commit

Permalink
[Hotfix] print the missing Final results (#41)
Browse files Browse the repository at this point in the history
* hotfix for the missing ``Final`` results print
yxdyc authored Apr 27, 2022

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
1 parent 358bc92 commit 07d6409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions federatedscope/core/worker/server.py
Original file line number Diff line number Diff line change
@@ -323,11 +323,11 @@ def save_best_results(self):
if self._cfg.federate.save_to != '':
self.aggregator.save_model(self._cfg.federate.save_to, self.state)
formatted_best_res = self._monitor.format_eval_res(
self.best_results,
results=self.best_results,
rnd="Final",
role='Server #',
forms=["raw"],
return_raw=self._cfg.federate.make_global_eval)
return_raw=True)
logger.info(formatted_best_res)
self.save_formatted_results(formatted_best_res)

0 comments on commit 07d6409

Please sign in to comment.