tfds.even_splits

Generates a list of sub-splits of same size.

Example:

assert tfds.even_splits('train', n=3) == [
    'train[0%:33%]', 'train[33%:67%]', 'train[67%:100%]',
]

split Split name (e.g. 'train', 'test',...)
n Number of sub-splits to create

The list of subsplits.