incerto.ood.get_ood_predictions

incerto.ood.get_ood_predictions#

incerto.ood.get_ood_predictions(scores, threshold)[source]#

Get binary OOD predictions based on threshold.

Parameters:
  • scores (Tensor | ndarray) – OOD scores (higher = more OOD-like).

  • threshold (float) – Decision threshold.

Return type:

ndarray

Returns:

Binary array (1 = OOD, 0 = ID).