All Projects → EtienneDesticourt → Graphical Confusion Matrix For Mnist With Facets

EtienneDesticourt / Graphical Confusion Matrix For Mnist With Facets

Labels

A simple graphical confusion matrix with Facets

Confusion matrices are great to check which classes get mixed up together, but then you're left to plot, or visualize the wrong examples yourself in order to figure out why said classes are confusing your model.
With Facets the examples can be displayed directly inside of the confusion matrix as shown on Google's blog with the CIFAR dataset: CIFAR Confusion Matrix
And you can zoom in on the different classes and better visualize where the problem might lie:
CIFAR Confusion Matrix

 

This repository provides a more thorough example of using Facets to create such a matrix.
To do so, a small CNN is trained on the MNIST dataset using Keras and Tensorflow and a custom function is used to transform the image array into a "sprite atlas" as used by Facets Dive.

MNIST Confusion Matrix MNIST Confusion Matrix

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].