8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7ca0c5 commit dca8406Copy full SHA for dca8406
sklearn/metrics/ranking.py
@@ -180,7 +180,7 @@ def _binary_uninterpolated_average_precision(
180
y_true, y_score, sample_weight=sample_weight)
181
# Return the step function integral
182
# The following works because the last entry of precision is
183
- # garantee to be 1, as returned by precision_recall_curve
+ # guaranteed to be 1, as returned by precision_recall_curve
184
return -np.sum(np.diff(recall) * np.array(precision)[:-1])
185
186
return _average_binary_score(_binary_uninterpolated_average_precision,
0 commit comments