dataeval.utils.data¶
Utility functions for dataset splitting and data and metadata manipulation.
Attributes¶
Kind of MAITE dataset a consumer requires. |
Classes¶
Output class containing test indices and a list of TrainValSplits. |
|
Dataclass containing train and validation indices. |
Functions¶
|
Validate a named dataset argument before the wrapped call runs (decorator). |
|
Dataset splitting function. Returns a dataclass containing a list of train and validation indices. |
|
Unzips a dataset into separate generators for images and targets. |
|
Validate that a dataset matches the expected MAITE datum shape. |
Module Contents¶
- dataeval.utils.data.DatasetKind¶
Kind of MAITE dataset a consumer requires.
"image_only"— only the image (datum[0]) is read; tuple or bare image both OK."classification"— full 3-tuple;datum[1]is anArrayof class scores/logits."object_detection"— full 3-tuple;datum[1]is anObjectDetectionTarget."segmentation"— full 3-tuple;datum[1]is aSegmentationTarget."any_target"— full 3-tuple;datum[1]matches any of the above.