archetypes.datasets.shuffle_dataset#

archetypes.datasets.shuffle_dataset(data, ndim=None, generator=None)#

Shuffle a dataset along each dimension.

Parameters:
data: array-like

The dataset to shuffle.

ndim: list of int or None, default=None

The dimensions to shuffle. If None, all dimensions are shuffled.

generator: int, Generator or None, default=None

The generator to use for shuffling. If None, the default generator is used.

Returns:
data: array-like

The shuffled dataset.

info: dict

The information about the shuffling.