Confusion Matrix

Confusion Matrix#

Plot confusion matrices. Inlcudes the option to rearrange columns and rows to make the matrix appear diagonal, which can facilitate interpretation.

plot_confusion_matrix_from_adata(adata, ...)

Plots a confusion matrix from an AnnData object, with optional row and column colors.

plot_confusion_matrix(true_labels_encoded, ...)

Plot a confusion matrix using cluster mapping with optional color annotations.