Skip to content

Commit 15a768c

Browse files
author
“Zelaikha
committed
added more edits
1 parent 88f526c commit 15a768c

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

notebooks/FederatedLearning/GCP_FederatedLearning.ipynb

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,26 +1199,7 @@
11991199
" plt.tight_layout()\n",
12001200
" plt.savefig(plot_save.path)\n",
12011201
" print(f\"Combined plot saved to {plot_save.path}\")\n",
1202-
" plt.close()\n",
1203-
" # plt.figure(figsize=(8, 4))\n",
1204-
" # for client in metrics:\n",
1205-
" # for k, v in client[\"metrics\"].items():\n",
1206-
" # x_vals = range(len(v))\n",
1207-
" # plt.plot(x_vals, v, label=k)\n",
1208-
" \n",
1209-
"\n",
1210-
" # plt.title(f\"Metrics for {client['name']}\")\n",
1211-
" # plt.xlabel(\"Epoch\")\n",
1212-
" # plt.ylabel(\"Value\")\n",
1213-
" # plt.legend()\n",
1214-
" # plt.grid(True)\n",
1215-
" # # Save the plot with a unique filename for each client\n",
1216-
" # plot_path = os.path.join(plot_save.path, f\"{client['name']}_metrics.png\")\n",
1217-
" # plt.savefig(plot_path)\n",
1218-
" # print(f\"Saved plot for {client['name']} to {plot_path}\")\n",
1219-
" # plt.close()\n",
1220-
" # plt.savefig(plot_save.path)\n",
1221-
" # plt.close()"
1202+
" plt.close()"
12221203
]
12231204
},
12241205
{

0 commit comments

Comments
 (0)