multiple sets in one dataset #5617
-
Does anyone have any suggestions for creating 2 datasets at once? When I run Does anyone have any suggestions for creating 2 datasets at once? When I run dataset = ImbCircuitDataset('test'), I want it to save 2 separate sets, even if I have to go all the way back to I started doing it at the bottom of the
https://stackoverflow.com/questions/73967797/have-a-pytorch-class-produce-2-separate-datasets |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The recommended approach for this is to introduce a argument such as train_dataset = MyDataset(..., split="train")
test_dataset = MyDataset(..., split="test") See here for an example. |
Beta Was this translation helpful? Give feedback.
The recommended approach for this is to introduce a argument such as
split
and instantiate the dataset twice:See here for an example.