deepr.prepros.Shuffle
- class deepr.prepros.Shuffle(buffer_size, modes=None, seed=None, reshuffle_each_iteration=None)[source]
Randomly shuffles the elements of a dataset.
- modes
Active modes for the map (will skip modes not in modes). Default is None (all modes are considered active modes).
- Type:
Iterable[str], Optional
Methods
__init__
(buffer_size[, modes, seed, ...])apply
(dataset[, mode])Pre-process a dataset