FieldwiseDataset#
- class maite.protocols.multiobject_tracking.FieldwiseDataset(*args, **kwargs)[source]#
A specialization of Dataset protocol (i.e., a subprotocol) that specifies additional accessor methods for getting input, target, and metadata individually.
Methods
__getitem__(ind: int) -> tuple[InputType, TargetType, DatumMetadataType]
Provide map-style access to dataset elements. Returned tuple elements correspond to model input type, model target type, and datum-specific metadata type, respectively.
__len__() -> int
Return the number of data elements in the dataset.
get_input(index: int, /) -> InputType:
Get input at the given index.
get_target(index: int, /) -> TargetType:
Get target at the given index.
get_metadata(index: int, /) -> DatumMetadataType:
Get metadata at the given index.