accuracy

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

Computes the accuracy.

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

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

Returns

accuracy

Return type

float