DataSample#
- class DataSample[source]#
Bases:
object
A chip and labels along with metadata.
Attributes
- __init__(chip: ndarray, label: Any | None = None, split: Optional[Literal['train', 'valid', 'test']] = None, scene_id: str | None = None, window: rastervision.core.box.Box | None = None) None #
- Parameters:
chip (ndarray) –
label (Any | None) –
scene_id (str | None) –
window (rastervision.core.box.Box | None) –
- Return type:
None
Methods
__init__
(chip[, label, split, scene_id, window])- __init__(chip: ndarray, label: Any | None = None, split: Optional[Literal['train', 'valid', 'test']] = None, scene_id: str | None = None, window: rastervision.core.box.Box | None = None) None #
- Parameters:
chip (ndarray) –
label (Any | None) –
scene_id (str | None) –
window (rastervision.core.box.Box | None) –
- Return type:
None
- window: rastervision.core.box.Box | None = None#