lir.metrics.overestimation module

lir.metrics.overestimation.llr_overestimation(llrs: ndarray, y: ndarray, **kwargs: Any) float[source]

Calculate the mean absolute value of the LLR-overestimation.

Parameters:
  • llrs (np.ndarray) – Array of log-likelihood ratios.

  • y (np.ndarray) – Array of labels (1 for H1 and 0 for H2).

  • **kwargs (Any) – Additional keyword arguments forwarded to calc_llr_overestimation.

Returns:

Mean absolute value of the overestimation grid, or np.nan when unavailable.

Return type:

float