Skip to content
Discussion options

You must be logged in to vote

The recommended approach for this is to introduce a argument such as split and instantiate the dataset twice:

train_dataset = MyDataset(..., split="train")
test_dataset = MyDataset(..., split="test")

See here for an example.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@anthonysirico
Comment options

@EdisonLeeeee
Comment options

@anthonysirico
Comment options

Answer selected by anthonysirico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants