Skip to content

Commit

Permalink
Change lora to dotted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Jul 28, 2024
1 parent 6e0e778 commit aff2d1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions finetuning/specialists/resource-efficient/plot_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def plot_all_experiments():
this_box_res['name'].str.contains("lora") | this_box_res['name'].str.contains("initial")
],
ax=ax[0, idx], palette=PALETTE, hue_order=PALETTE.keys(),
marker="o", markersize=15, linewidth=5, linestyle="--",
marker="o", markersize=15, linewidth=5, linestyle=":",
)
ax[0, idx].set_title(_title, fontweight="bold")
ax[0, idx].set(xlabel=None, ylabel=None)
Expand All @@ -183,7 +183,7 @@ def plot_all_experiments():
x="x", y="results", hue="type",
data=this_res[this_res['name'].str.contains("lora") | this_res['name'].str.contains("initial")],
ax=ax[1, idx], palette=PALETTE, hue_order=PALETTE.keys(),
marker="o", markersize=15, linewidth=5, linestyle="--",
marker="o", markersize=15, linewidth=5, linestyle=":",
)
# ax[1, idx].set_title(_title, fontweight="bold")
ax[1, idx].set(xlabel=None, ylabel=None)
Expand All @@ -206,13 +206,13 @@ def plot_all_experiments():
_colors = list(PALETTE.values())
custom_handles = [
mlines.Line2D([], [], color=_colors[0], markersize=15, marker='o', linestyle='-', linewidth=5),
mlines.Line2D([], [], color=_colors[0], markersize=15, marker='o', linestyle='--', linewidth=5),
mlines.Line2D([], [], color=_colors[0], markersize=15, marker='o', linestyle=':', linewidth=5),
mlines.Line2D([], [], color=_colors[1], markersize=15, marker='o', linestyle='-', linewidth=5),
mlines.Line2D([], [], color=_colors[1], markersize=15, marker='o', linestyle='--', linewidth=5),
mlines.Line2D([], [], color=_colors[1], markersize=15, marker='o', linestyle=':', linewidth=5),
mlines.Line2D([], [], color=_colors[2], markersize=15, marker='o', linestyle='-', linewidth=5),
mlines.Line2D([], [], color=_colors[2], markersize=15, marker='o', linestyle='--', linewidth=5),
mlines.Line2D([], [], color=_colors[2], markersize=15, marker='o', linestyle=':', linewidth=5),
mlines.Line2D([], [], color=_colors[3], markersize=15, marker='o', linestyle='-', linewidth=5),
mlines.Line2D([], [], color=_colors[3], markersize=15, marker='o', linestyle='--', linewidth=5),
mlines.Line2D([], [], color=_colors[3], markersize=15, marker='o', linestyle=':', linewidth=5),
]

fig.legend(
Expand Down

0 comments on commit aff2d1e

Please sign in to comment.