probly.datasets.torch.DCICDataset¶
- class probly.datasets.torch.DCICDataset(root: Path | str, transform: Callable[..., Any] | None = None, *, first_order: bool = True)[source]¶
Bases:
DatasetA Dataset base class for the DCICDatasets introduced in [SGZ+22].
These datasets can be found at https://zenodo.org/records/7180818.
Initialize an instance of the DCICDataset class.
- Parameters:
root – Root directory of the dataset.
transform – Optional transform to apply to the data.
first_order – Whether to use first order data or class labels. Defaults to True.
- root: Path¶
Root directory of the dataset.
- targets: list[torch.Tensor]¶
List of labels.