wetliu / energy_ood

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why is shuffle set to False for the train OOD dataloader?

utkutpcgl opened this issue · comments

Thanks for the contribution.

Why didn't you shuffle the OOD dataset to induce randomness?

train_loader_out = torch.utils.data.DataLoader(

Instead, randomness is induced by changing the dataset offset, why is that?

train_loader_out.dataset.offset = np.random.randint(len(train_loader_out.dataset))