-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Is it possible to make validation_step
and val_dataloader
no-ops?
#82
Labels
Milestone
Comments
tc-wolf
added
feature
Is an improvement or enhancement
help wanted
Open to be worked on
labels
Aug 8, 2019
great idea. val call can just be made optional! very easy to do. do you want to give it a shot?
|
Thanks, I'll take a stab at that this weekend! |
Merged
live on master now |
Dang, too fast for me :) Thanks for working on this! |
Sorry for writing to this thread but how can I use it in my model? Is it enough to do something like:
After that do I need to do something like:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Sometimes I don't have a separate validation split, only a train/test split. I'm trying out pytorch-lightning to prototype / experiment, and trying to see what the best of way of doing this is.
I could make the train dataset and then do
torch.utils.data.random_split
or usetorch.utils.data.SubsetRandomSampler
to build a validation set as well, but if I don't have enough data (or just don't want to do a separate validation step) this isn't ideal.Describe the solution you'd like
I'd like to be able to implement only the training_step, train_dataloader, and test_dataloader methods and then have the validation step and validation metrics be omitted (maybe explicit no-ops). Right now, I'm experimenting with having an empty DataLoader for the validation data.
Describe alternatives you've considered
val_dataloader
with an empty (dummy) DataLoaderThe text was updated successfully, but these errors were encountered: