Skip to content

Conversation

@Borda
Copy link
Collaborator

@Borda Borda commented Dec 17, 2019

What does this PR do?

I have found the shortcut val for validation quite confusing, so I would rename it as valid

  • rename val_dataloader -> valid_dataloader
  • rename get_val_dataloader -> get_valid_dataloader

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

@jeffling
Copy link
Contributor

I would argue that it should be 'validation_dataloader' instead of 'val', since 'valid' means something and could cause confusion (valid/invalid).

@Borda
Copy link
Collaborator Author

Borda commented Dec 18, 2019

I would argue that it should be 'validation_dataloader' instead of 'val', since 'valid' means something and could cause confusion (valid/invalid).

I am fine with validation_dataloader just feeling so confused with the val

@awaelchli
Copy link
Contributor

Why rename val_dataloader and not train_dataloader? If val_dataloader is confusing, then also train_dataloader should confuse you. Is it the verb or the vehicle for transportation? xD
So what I mean to say is: I agree that it needs to be renamed to remove confusion, but your reasoning is not complete.
Another argument would be that we have training_step and validation_step, and not train_step, val_step.

@williamFalcon
Copy link
Contributor

p(word|context) makes it very clear it’s not about the transportation noun ;)

@Borda
Copy link
Collaborator Author

Borda commented Dec 18, 2019

Why rename val_dataloader and not train_dataloader? If val_dataloader is confusing, then also train_dataloader should confuse you. Is it the verb or the vehicle for transportation? xD

for me val is a natural shortcut fro value, but what can you do with train to be still in CS

So what I mean to say is: I agree that it needs to be renamed to remove confusion, but your reasoning is not complete.
Another argument would be that we have training_step and validation_step, and not train_step, val_step.

so what renaming would you propose? :]

@neggert
Copy link
Contributor

neggert commented Dec 18, 2019

We've already changed this stuff once and it confused a lot of users (tng_dataloader -> train_dataloader). I'd prefer to avoid changing it again. train/val/test is pretty common parlance anyway, e.g. torchvision.dataset.ImageNet.

If we do change it, it should be to get rid of the abbreviation entirely, rather than switching to a different abbreviation.

@Borda
Copy link
Collaborator Author

Borda commented Dec 21, 2019

let's make it as a small poll:

@kuynzereb
Copy link
Contributor

I agree with @jeffling that valid_dataloader sounds even more ambiguous than val_dataloader. And I agree with @neggert that val is a very common abbreviation for validation. Maybe val is confusing sometimes (for example, val_loss or loss_val), but in the context of val_dataloader it doesn't seem to be ambiguous...

So it looks like that val_dataloadervalid_dataloader will be only worse. And I don't see any obvious pros for val_dataloadervalidation_dataloader.

@jeffling
Copy link
Contributor

jeffling commented Dec 26, 2019

based on torchvision using val, i vote for keeping as is

@Borda Borda closed this Dec 29, 2019
@Borda Borda deleted the valid_dataloader branch January 16, 2020 14:37
@Borda Borda changed the title rename valid_dataloader rename valid_dataloader [discussion] Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants