Suppose you want to see the samples with the highest error in the Training set. You can call like this:
interp = ClassificationInterpretation.from_learner(learn,ds_type=DatasetType.Train)
However,
interp.plot_top_losses(9, figsize=(15,11))
assumes the Validation set (hard coded) and throws an index error.
ClassificationInterpretation.from_learner needs to remember the dataset you called it on and apply its interpretation methods to that same dataset.
Thanks for your good work on the new fastai library!