dataeval.detectors.ood.OODScoreOutput#

class dataeval.detectors.ood.OODScoreOutput#

Output class for instance and feature scores from out-of-distribution detectors.

Parameters:
  • instance_score (NDArray) – Instance score of the evaluated dataset.

  • feature_score (NDArray | None, default None) – Feature score, if available, of the evaluated dataset.

get(ood_type)#

Returns either the instance or feature score

Parameters:

ood_type ("instance" | "feature")

Returns:

Either the instance or feature score based on input selection

Return type:

NDArray