dataeval.protocols.Threshold

class dataeval.protocols.Threshold

Protocol for threshold objects used in bias and quality evaluators.

This protocol defines the interface for threshold objects that determine whether a given score or metric exceeds a predefined threshold, indicating potential bias or quality issues.

__call__(self, data: NDArray[Any]) tuple[float | None, float | None]

Return the lower and upper threshold values based on the input data.