Contents:
pycalib.scoring.
sharpness
Computes the empirical sharpness of a classifier.
Computes the empirical sharpness of a classifier by computing the sample variance of a vector of confidence estimates.
y (array-like) – Ground truth labels. Dummy argument for consistent cross validation.
p_pred (array-like) – Array of confidence estimates
ddof (int, optional, default=1) – Degrees of freedom for the variance estimator.
Sharpness
float