Lesson1: interp.plot_top_losses --> Attribute Error

i wanted to have the top.losses plotted and executed the following code:

losses,idxs = interp.top_losses()

ang get this error:

I used from_folder to create a DataBunch. could that have something to do with it?

data = ImageDataBunch.from_folder(path, train=".",valid_pct=0.2, ds_tfms=tfms, size=227, num_workers=4, bs=bs).normalize(imagenet_stats)

Can somebody help?

1 Like