ksuit.data.wrappers.dataset_wrappers.subset_wrapper

Classes

SubsetWrapper

Wraps the dataset with a ksuit.data.Subset using indices generated by the properties from the constructor.

Module Contents

class ksuit.data.wrappers.dataset_wrappers.subset_wrapper.SubsetWrapper(dataset, indices=None, start_index=None, end_index=None, start_percent=None, end_percent=None)

Bases: ksuit.data.base.Subset

Wraps the dataset with a ksuit.data.Subset using indices generated by the properties from the constructor.

Parameters:
  • dataset (ksuit.data.base.Dataset) – The dataset to wrap.

  • indices (collections.abc.Sized | None) – The indices used for Subset. Defaults to None.

  • start_index (int | None) – The starting index of the Subset. Defaults to None.

  • end_index (int | None) – The ending index of the Subset. Defaults to None.

  • start_percent (float | None) – The starting percentage of the Subset. Defaults to None.

  • end_percent (float | None) – The ending percentage of the Subset. Defaults to None.

Raises: