Port of my old Class Confusion widget for Google Colab
import warnings
warnings.filterwarnings("ignore",category=matplotlib.cbook.mplDeprecation)

class ClassConfusion[source]

ClassConfusion(learn, dl=None, cut_off=100, is_ordered=False, classlist=[], varlist=None, figsize=(12, 12), **kwargs)

Plots the most confused datapoints and statistics for model misses. First is prediction second is actual