Skip to content

Commit

Permalink
🌈 style(Redesign some output filename rules):
Browse files Browse the repository at this point in the history
  • Loading branch information
KarhouTam committed Aug 10, 2024
1 parent b517e19 commit 79c51ac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server/fedavg.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,7 @@ def run(self):
plt.ylabel("Accuracy")
plt.legend()
plt.savefig(
self.output_dir
/ f"{self.args.common.dataset}.png",
self.output_dir / f"metrics.png",
bbox_inches="tight",
)

Expand Down Expand Up @@ -810,8 +809,7 @@ def run(self):
value=np.array(stats).T,
)
df.to_csv(
self.output_dir
/ f"{self.args.common.dataset}_acc_metrics.csv",
self.output_dir / f"metrics.csv",
index=True,
index_label="epoch",
)
Expand Down

0 comments on commit 79c51ac

Please sign in to comment.