I have question about pytorch Dataset class
what shoud I do when we need to skip n th element for training?
for example,
# when idx == 100, the data is ill-formed text.
# Thus, I want to skip this sample in training
def __getitem__(self, idx):
   return self.data[idx]

These case happens when I filter some text and save in MongoDB
When the filtered text is empty or too short, I want to skip the sample
Thank you