Skip to content
Snippets Groups Projects
Commit 4ec6648f authored by Stephane Chavin's avatar Stephane Chavin
Browse files

save the metrics (precision / recall)

parent ab2859dc
Branches
No related tags found
No related merge requests found
......@@ -333,6 +333,8 @@ def plot_pr_curve(px, py, ap, save_dir=Path('pr_curve.png'), names=()):
ax.set_ylim(0, 1)
ax.legend(bbox_to_anchor=(1.04, 1), loc='upper left')
ax.set_title('Precision-Recall Curve')
metrics_dir = save_dir.parent / 'class_metrics.npy'
np.save(metrics_dir, py)
fig.savefig(save_dir, dpi=250)
plt.close(fig)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment