ertk.utils.shuffle_multiple
- ertk.utils.shuffle_multiple(*arrays: ndarray | Sequence, numpy_indexing: bool = True, seed: int | None = None)
Shuffles multiple arrays or lists in sync. Useful for shuffling the data and labels in a dataset separately while keeping them synchronised.
- Parameters:
- arrays, iterable of array-like
The arrays to shuffle. They must all have the same size of first dimension.
- numpy_indexing: bool, default = True
Whether to use NumPy-style indexing or list comprehension.