Types#
Type Aliases#
Type Variables#
- DatasetT#
TypeVar[bound =DatasetProtocol]
- DataListT#
TypeVar[bound =ndarray|Tensor|Data[ArrayCT] |DataList[ndarray|Tensor|Data[ArrayCT]]]
- ModuleListT#
TypeVar[bound =Module|ModuleList]
Protocols#
- class DatasetProtocol(*args, **kwargs)[source]#
-
Protocol for datasets used in NetLoader
- Attributes:
- extra
list[Any] |ndarray|NoneType Additional data for each sample in the dataset of length N with shape (N,…) and type Any
- idxs
ndarray Index for each sample in the dataset with shape (N) and type int
- low_dim
ndarray|Tensor|NoneType Low dimensional data for each sample in the dataset with shape (N)
- high_dim
ndarray|Tensor|object High dimensional data for each sample in the dataset with shape (N), this is required
- extra