spdl.source.IterableWithShuffle

class IterableWithShuffle[source]

Bases: Iterable[T], Protocol

A protocol that is often used to represent data source.

Methods

shuffle(seed)

Apply in-place shuffling

shuffle(seed: int) None[source]

Apply in-place shuffling