Unfortunately that’s not possible. I can calculate the len but can’t keep all the data in memory to make it indexable. Is there no way to split this kind of a dataset? For example in tensorflow you can .take and .skip to generate a train and validation set.