dataeval.data.selections.ClassFilter

class dataeval.data.selections.ClassFilter(classes, filter_detections=True)

Select dataset indices based on class labels, keeping only those present in classes.

Parameters:
classes : Sequence[int]

The sequence of classes to keep.

filter_detections : bool, default True

Whether to filter detections from targets for object detection and segmentation datasets.