Skip to content

Commit

Permalink
Updated graphs titles
Browse files Browse the repository at this point in the history
  • Loading branch information
afoix committed Jul 29, 2024
1 parent 41d4603 commit 251d85f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/shapeembed/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ def save_barplot( scores_df
ax.set(title=f'f1 score against batch size ({m}, compression factor {cf})')
plt.savefig(f"{outputdir}/barplot_{m}_x_bs_cf{cf}.pdf")
plt.close()
ax = seaborn.catplot( data=melted_df.loc[ (melted_df['model'] == m) & (melted_df['batch_size'] == cf)
for bs in melted_df['batch_size'].unique():
ax = seaborn.catplot( data=melted_df.loc[ (melted_df['model'] == m) & (melted_df['batch_size'] == bs)
, ['compression_factor', 'beta', 'Metric', 'Score'] ]
, kind="bar"
, x='compression_factor'
Expand All @@ -314,7 +315,7 @@ def save_barplot( scores_df
, aspect=width * 2**0.5 / height )
ax.tick_params(axis='x', rotation=90)
ax.fig.subplots_adjust(top=0.9)
ax.set(title=f'f1 score against batch size ({m}, compression factor {cf})')
ax.set(title=f'f1 score against compression factor ({m}, compression batch size {bs})')
plt.savefig(f"{outputdir}/barplot_{m}_x_cf_bs{bs}.pdf")
plt.close()
# log info
Expand Down

0 comments on commit 251d85f

Please sign in to comment.