Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
utkutpcgl opened this issue Jan 2, 2023 · 1 comment
Closed

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

utkutpcgl opened this issue Jan 2, 2023 · 1 comment

Comments

@utkutpcgl
Copy link

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))

@wetliu
Copy link
Owner

wetliu commented Jan 2, 2023

#2

@wetliu wetliu closed this as completed Jan 2, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants