From b72ce8ad930373f8aba6705263023585e2063e33 Mon Sep 17 00:00:00 2001 From: memgonzales Date: Wed, 20 Nov 2024 00:17:24 +0800 Subject: [PATCH] Lint notebook --- experiments/6.1. Plotting - F1.ipynb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/experiments/6.1. Plotting - F1.ipynb b/experiments/6.1. Plotting - F1.ipynb index 04c9bda..32d75dc 100644 --- a/experiments/6.1. Plotting - F1.ipynb +++ b/experiments/6.1. Plotting - F1.ipynb @@ -318,7 +318,7 @@ ")\n", "\n", "plt.gca().add_artist(legend1)\n", - "plt.savefig(f\"../figures/sota-f1-s-{SIMILARITY}.png\", bbox_inches='tight')" + "plt.savefig(f\"../figures/sota-f1-s-{SIMILARITY}.png\", bbox_inches=\"tight\")" ] }, { @@ -435,11 +435,11 @@ "if SIMILARITY == 40:\n", " ax.set_ylim(bottom=35, top=61)\n", "elif SIMILARITY == 100:\n", - " ax.set_ylim(bottom=75, top = 82)\n", + " ax.set_ylim(bottom=75, top=82)\n", "elif SIMILARITY == 80:\n", " ax.set_ylim(top=66, bottom=54)\n", "elif SIMILARITY == 60:\n", - " ax.set_ylim(top=65, bottom = 47)\n", + " ax.set_ylim(top=65, bottom=47)\n", "\n", "ax.set_ylabel(\"Macro-F1 (%)\", fontsize=12)\n", "ax.set_xlabel(\"Confidence threshold $k$ (%)\", fontsize=12)\n", @@ -456,7 +456,7 @@ ")\n", "\n", "plt.gca().add_artist(legend1)\n", - "plt.savefig(f\"../figures/plm-f1-s-{SIMILARITY}.png\", bbox_inches='tight')" + "plt.savefig(f\"../figures/plm-f1-s-{SIMILARITY}.png\", bbox_inches=\"tight\")" ] }, { @@ -566,7 +566,7 @@ "elif SIMILARITY == 80:\n", " ax.set_ylim(bottom=52)\n", "elif SIMILARITY == 60:\n", - " ax.set_ylim(top = 66, bottom=41)\n", + " ax.set_ylim(top=66, bottom=41)\n", "elif SIMILARITY == 100:\n", " ax.set_ylim(top=83)\n", "\n", @@ -585,7 +585,7 @@ ")\n", "\n", "plt.gca().add_artist(legend1)\n", - "plt.savefig(f\"../figures/struct-f1-s-{SIMILARITY}.png\", bbox_inches='tight')" + "plt.savefig(f\"../figures/struct-f1-s-{SIMILARITY}.png\", bbox_inches=\"tight\")" ] }, { @@ -695,7 +695,7 @@ "elif SIMILARITY == 80:\n", " ax.set_ylim(top=67)\n", "elif SIMILARITY == 60:\n", - " ax.set_ylim(top = 66, bottom = 41)\n", + " ax.set_ylim(top=66, bottom=41)\n", "\n", "ax.set_ylabel(\"Macro-F1 (%)\", fontsize=12)\n", "ax.set_xlabel(\"Confidence threshold $k$ (%)\", fontsize=12)\n", @@ -712,7 +712,7 @@ ")\n", "\n", "plt.gca().add_artist(legend1)\n", - "plt.savefig(f\"../figures/masking-f1-s-{SIMILARITY}.png\", bbox_inches='tight')" + "plt.savefig(f\"../figures/masking-f1-s-{SIMILARITY}.png\", bbox_inches=\"tight\")" ] }, { @@ -822,7 +822,7 @@ "elif SIMILARITY == 80:\n", " ax.set_ylim(top=71)\n", "elif SIMILARITY == 60:\n", - " ax.set_ylim(top = 71)\n", + " ax.set_ylim(top=71)\n", "elif SIMILARITY == 100:\n", " ax.set_ylim(top=91)\n", "\n", @@ -841,7 +841,7 @@ ")\n", "\n", "plt.gca().add_artist(legend1)\n", - "plt.savefig(f\"../figures/ml-f1-s-{SIMILARITY}.png\", bbox_inches='tight')" + "plt.savefig(f\"../figures/ml-f1-s-{SIMILARITY}.png\", bbox_inches=\"tight\")" ] } ],