noether.data.base.wrappers.subset¶
Classes¶
Wraps the dataset with a noether.data.Subset using indices generated by the properties from the constructor. |
Module Contents¶
- class noether.data.base.wrappers.subset.SubsetWrapperConfig(/, **data)¶
Bases:
noether.data.base.wrapper.DatasetWrapperConfig- Parameters:
data (Any)
- indices: collections.abc.Sequence | None = None¶
- class noether.data.base.wrappers.subset.SubsetWrapper(config, dataset)¶
Bases:
noether.data.base.subset.SubsetWraps the dataset with a noether.data.Subset using indices generated by the properties from the constructor.
Example
dataset_wrappers: kind: noether.data.base.wrappers.SubsetWrapper start_index: 100 end_index: 200
- Parameters:
config (SubsetWrapperConfig) – The configuration to use. See
SubsetWrapperConfigfor available options.dataset (noether.data.base.dataset.Dataset | noether.data.base.wrapper.DatasetWrapper) – The dataset to wrap.
- Raises:
ValueError – If the input parameters are invalid.
RuntimeError – If no valid indices are provided.