We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear author, I would like to know how to draw the P-R curve and Confusion metrics for known classes.
Although you provide a function here, I can not use it to draw a PR curve for all classes.
OWOD/detectron2/evaluation/pascal_voc_evaluation.py
Line 595 in 23890f1
def plot_pr_curve(precision, recall, filename, base_path='xxxxx/output/plots/'): fig, ax = plt.subplots() ax.step(recall, precision, color='r', alpha=0.99, where='post') ax.fill_between(recall, precision, alpha=0.2, color='b', step='post') plt.xlabel('Recall') plt.ylabel('Precision') plt.ylim([0.0, 1.05]) plt.xlim([0.0, 1.0]) plt.savefig(base_path + filename)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dear author, I would like to know how to draw the P-R curve and Confusion metrics for known classes.
Although you provide a function here, I can not use it to draw a PR curve for all classes.
OWOD/detectron2/evaluation/pascal_voc_evaluation.py
Line 595 in 23890f1
def plot_pr_curve(precision, recall, filename, base_path='xxxxx/output/plots/'):
fig, ax = plt.subplots()
ax.step(recall, precision, color='r', alpha=0.99, where='post')
ax.fill_between(recall, precision, alpha=0.2, color='b', step='post')
plt.xlabel('Recall')
plt.ylabel('Precision')
plt.ylim([0.0, 1.05])
plt.xlim([0.0, 1.0])
plt.savefig(base_path + filename)
The text was updated successfully, but these errors were encountered: