error

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

Computes the classification error.

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

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

Returns

error

Return type

float