dataeval.selection.Selection¶
- class dataeval.selection.Selection¶
Base class for all selection criteria used with
Select.Custom selection criteria should subclass this and set
stageto control execution order:SelectionStage.STATE(0) — set size limits (e.g.Limit)SelectionStage.FILTER(1) — narrow indices (e.g.ClassFilter)SelectionStage.ORDER(2) — reorder indices (e.g.Shuffle)
Subclasses must implement
__call__which mutates theSelectwrapper’s internal index list in place.Subclasses that read the target of each datum (e.g.
dataset[i][1]) should setrequiresto declare the MAITE datum shape they need.Selectaggregates these and validates the source dataset once, upfront, raisingMaiteShapeErrorbefore any selection runs.