-
Notifications
You must be signed in to change notification settings - Fork 27
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
Matrix plot and Track Origin confusion matrix #258
Conversation
…mplemented track origin CM plot
… so that it works well also on diverging colormaps
… classes that are not predicted by the classifier; fixed some comments.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
==========================================
+ Coverage 97.81% 97.89% +0.08%
==========================================
Files 43 47 +4
Lines 4661 4852 +191
==========================================
+ Hits 4559 4750 +191
Misses 102 102 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this MR, it looks really good.
I've added some minor comments
…ne of MatshowPlot
…all the drawing on the canvas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for implementing this, @LucioDerin
Summary
This pull request introduces the following changes
MatshowPlot
dedicated to matrix plots, based onmatplotlib
'smatshow
(can be found inpuma.matshow
).confusion_matrix
to compute a confusion matrix from target and predicted labels of a classifier. Can be found inpuma.utils.confusion_matrix
.AuxResults
class. The result on thedummy_GN2
tagger is attached at the end.Relates to the following issues
MatshowPlot
class can be used to plot the saliency map once it's computed (a similar plot, obtained with theMatshowPlot
class and implemented in the examples, is attached at the end).Conformity
Examples
Track Origin Confusion Matrix
A general matrix plot (inspired to the saliency map)