You cannot pass the DataLoader object directly to classification_report as numpy arrays are expected, so you would need to store the targets in e.g. a list as was done for t_predictions and then convert it to e.g. a numpy array.