probly.evaluation.ood.out_of_distribution_detection_auroc

probly.evaluation.ood.out_of_distribution_detection_auroc(in_distribution: ndarray, out_distribution: ndarray) float[source]

Perform out-of-distribution detection using prediction functionals.

This can be epistemic uncertainty, as is common, but also e.g. softmax confidence.

Parameters:
  • in_distribution – In-distribution prediction functionals.

  • out_distribution – Out-of-distribution prediction functionals.

Returns:

Area under the ROC curve.