noether.data.base.wrappers.shuffle¶
Classes¶
Shuffles the dataset, optionally with seed. |
Module Contents¶
- class noether.data.base.wrappers.shuffle.ShuffleWrapper(config, dataset)¶
Bases:
noether.data.base.SubsetShuffles the dataset, optionally with seed.
- Parameters:
config (noether.core.schemas.dataset.ShuffleWrapperConfig) – Configuration for the ShuffleWrapper. See
ShuffleWrapperConfigfor available options.dataset (noether.data.base.Dataset | noether.data.base.DatasetWrapper) – The dataset to shuffle. Can be a base dataset or an already wrapped dataset.
- Raises:
ValueError – If the dataset is not an instance of noether.data.Dataset or DatasetWrapper, or if the seed is not an integer or None.
- seed¶