odds_correctness

pycalib.scoring.odds_correctness(y, p_pred)[source]

Computes the odds of making a correct prediction.

Parameters
  • y (array-like) – Ground truth labels.

  • p_pred (array-like) – Array of confidence estimates.

Returns

odds

Return type

float