Function related to interp not working

Hello ,

I am trying to run functions related to interp ,but getting error.

from fastai.widgets import *

losses,idxs = interp.top_losses()

IndexError Traceback (most recent call last)
in ()
3
4 losses,idxs = interp.top_losses()
----> 5 top_loss_paths = data.valid_ds.x[idxs]

/usr/local/lib/python3.6/dist-packages/fastai/data_block.py in getitem(self, idxs)
108 idxs = try_int(idxs)
109 if isinstance(idxs, Integral): return self.get(idxs)
–> 110 else: return self.new(self.items[idxs], inner_df=index_row(self.inner_df, idxs))
111
112 @classmethod

IndexError: index 2190 is out of bounds for axis 0 with size 1250

##############################3
Second function::
interp.plot_confusion_matrix()

RuntimeError Traceback (most recent call last)
in ()
----> 1 interp.plot_confusion_matrix()

1 frames
/usr/local/lib/python3.6/dist-packages/fastai/train.py in confusion_matrix(self, slice_size)
155 for i in range(0, self.y_true.shape[0], slice_size):
156 cm_slice = ((self.pred_class[i:i+slice_size]==x[:,None])
–> 157 & (self.y_true[i:i+slice_size]==x[:,None,None])).sum(2)
158 torch.add(cm, cm_slice, out=cm)
159 return to_np(cm)

RuntimeError: Expected object of scalar type Float but got scalar type Long for argument #2 ‘other’