dataeval.utils.data

Deprecated location. Dataset operations moved to dataeval.data.

Importing split_dataset(), unzip_dataset(), TrainValSplit, or DatasetSplits from here is deprecated; import them from dataeval.data. The validation helpers (DatasetKind, validate_dataset(), requires_maite_dataset()) remain available here.

Attributes

DatasetKind

Kind of MAITE dataset a consumer requires.

Functions

requires_maite_dataset

Validate a named dataset argument before the wrapped call runs (decorator).

validate_dataset

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 an Array of class scores/logits.

  • "object_detection" — full 3-tuple; datum[1] is an ObjectDetectionTarget.

  • "segmentation" — full 3-tuple; datum[1] is a SegmentationTarget.

  • "any_target" — full 3-tuple; datum[1] matches any of the above.