I have an iterable dataset object with all of my data files. How can I split it into train and validation set. I have seen a few solutions for custom datasets but iterable does not support len()
operator. torch.utils.random_sample()
and torch.utils.SubsetRandomSample()
don’t work.
def __init__(self):
bla
bla
def __iter__(self):
bla
.
yield batch