eurocropsml.dataset.base.LabelledDataΒΆ
- class LabelledData(data_item: DataItem, label: torch.Tensor)ΒΆ
Bases:
NamedTupleClass that holds data, metadata and labels.
Methods
from_tensor_dict(tensors)Create Labelled data instance from dict of tensors.
Output LabelledData as dict.
to_tuple()Output LabelledData as tuple of DataItem and tensor containing labels.
Attributes