Skip to content

Commit

Permalink
Lint notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
memgonzales committed Nov 19, 2024
1 parent 0fcf16a commit b72ce8a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions experiments/6.1. Plotting - F1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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\")"
]
}
],
Expand Down

0 comments on commit b72ce8a

Please sign in to comment.