-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of ConfusionMatrix visualizer using the matplotlib pc…
…olormesh. - Allows for percent or raw count representation of the predictions - Implements heatmap with white=0, green=100%, and yellow-orange-red heatmap for everything else - Allows zooming in on confusion matrix using passed list of classes, with accurate %-of-all-true calculations - Tested for moderately large class numbers (30+) - Diagonal line indicates accurate predictions - Documentation added to docs/examples/methods.rst for one example matrix Suggested future improvements: - Resize font based on image size + class count - Allow custom color coding, including custom colors for _over and _under values (e.g. zero and 100%) - Vary text font color based on background color - While this branch currently adds an example to methods.rst, the examples/confusionMatrix.ipynb has additional examples using different of the passed parameters. This should probably also be exported as rst and added to the docs, but there was not an obvious place to put it so I am excluding that for now. Note this commit squashes all previous commits on this branch
- Loading branch information
1 parent
942a070
commit ceee7f8
Showing
6 changed files
with
677 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.