Hello there. If you can split your values before creating the CUSTOM_Dataset you can create one CUSTOM_Dataset and one dataloader for train and test respectively. The splitting of values should be straightforward if it’s a numpy array. You can use numpy.random.choice(...) numpy.split() or sklearn train_test_split
Would that work for you?