MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / plot_confusion_matrix

Function plot_confusion_matrix

slowfast/visualization/utils.py:48–89  ·  view source on GitHub ↗

A function to create a colored and labeled confusion matrix matplotlib figure given true labels and preds. Args: cmtx (ndarray): confusion matrix. num_classes (int): total number of classes. class_names (Optional[list of strs]): a list of class names. fig

(cmtx, num_classes, class_names=None, figsize=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected