How can I ignore the first few items in the dataset and exclude them in the dataloader?

Hi everyone.

I have an issue which removing the first few datapoints in the dataset, which couldn’t find a solution for it in the forum.

I have made a dataset for a time series and had to pad the first 25 items in the dataset.
Now I want to remove the padded datapoints but couldn’t find a way to do that. is there a way I can do this?

Cheers,

You could probably subclass the Dataset class you are using and override the __len__ (to be 25 shorter than the actual length) and __getitem__ functions (possibly to index into the parent class’s __getitem__ with an offset)

@eqy
Thanks a lot for your help.