[go: up one dir, main page]

Skip to content

`bootstrap_score` fails when labels are identical.

When y_true and y_pred are identical, the iteration is skipped in bootstrap_score. As a result, the np.quantile function on an empty set fails. Instead of crashing, return a quantile range that exactly coincides with the point estimate (after all, there is no variability).