Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[ImageNet/Pytorch] Cross-validation and/or Holdout Set #674

Open
nd26 opened this issue Sep 5, 2020 · 0 comments
Open

[ImageNet/Pytorch] Cross-validation and/or Holdout Set #674

nd26 opened this issue Sep 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nd26
Copy link

nd26 commented Sep 5, 2020

Related to Pytorch/ImageNet for any model

Is your feature request related to a problem? Please describe.
It would be a nice add-on to support the aforementioned types of validation (e.g. k-fold cross-validation and holdout set).

Describe the solution you'd like
This would require some code addition on where the dataloaders are defined. For instance, for a pytorch dataloader, it can be implemented using a StratifiedShuffleSplit followed by a SubsetRandomSampler/SubsetSampler which would be passed as a sampler to the training Dataloader (I'd assume it is straightforward for DALI too).

Describe alternatives you've considered
Perhaps this could be added as a preprocessing step through a bash script (i.e. separating a priori the training set in different folders, ie. img_fold_1, img_fold_2, etc. and appropriately if it's just a holdout set).

@nd26 nd26 added the enhancement New feature or request label Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants