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.

buffer_size

Buffer size for the shuffle buffer

Type:

int

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

__init__(buffer_size, modes=None, seed=None, reshuffle_each_iteration=None)[source]

Methods

__init__(buffer_size[, modes, seed, ...])

apply(dataset[, mode])

Pre-process a dataset