Skip to content
New issue

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

[Feature] Add confusion matrix to allowed metrics in BaseDataset #1574

Open
wants to merge 4 commits into
base: 0.x
Choose a base branch
from

Conversation

rlleshi
Copy link
Contributor

@rlleshi rlleshi commented Apr 11, 2022

Just a tiny change adding confusion matrix as an allowed metric as well as a basic visualization.

plt.figure(figsize=(15, 10))
sns.set(font_scale=1.5)
sns.heatmap(confusion_matrix, annot=True, square=True, cbar=True)
plt.show()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to save it as an image file to a specified location.

@kennymckormick
Copy link
Member

BTW, since confusion matrix is a matrix, we can not say one matrix is better than another. Try to add some assertions to make sure confusion_matrix is not used for save_best during validation.

@rlleshi
Copy link
Contributor Author

rlleshi commented Apr 19, 2022

BTW, since confusion matrix is a matrix, we can not say one matrix is better than another. Try to add some assertions to make sure confusion_matrix is not used for save_best during validation.

This takes care of that, right?

@cir7 cir7 deleted the branch open-mmlab:0.x April 10, 2023 12:26
@cir7 cir7 closed this Apr 10, 2023
@cir7 cir7 reopened this Apr 10, 2023
@cir7 cir7 changed the base branch from master to 0.x April 10, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants