I have trained a model using fastai and am trying to test it using the following command:
preds1, y1 = learn.get_preds(dl=data[1]), where data is the dataloader object. It worked and I can get the predictions. However, the following command gives different predictions
preds2, y2 = learn.get_preds(dl=data.valid).
What is the difference between data[1] and data.valid?