I train on 10% percentage of my data. I use subset randomsampler but it seems that it select different subsets each epoch, How can I fix the same subset each epoch
subset_idx = torch.arange(1000) # 10%
my_sampler=SubsetRandomSampler(subset_idx)
train_dl = DataLoader(MyDataset(X_train_Si,y_train_Si), batch_size=hparams[‘batch_size’],sampler=my_sampler,drop_last=False)