OODScoreOutput#
- class dataeval.detectors.ood.OODScoreOutput(instance_score: ndarray[Any, dtype[float32]], feature_score: ndarray[Any, dtype[float32]] | None = None)#
Output class for instance and feature scores from
OOD_AE,OOD_AEGMM,OOD_LLR,OOD_VAE, andOOD_VAEGMMout-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: Literal['instance', 'feature']) ndarray[Any, dtype[float32]]#
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