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 78bf15d commit 21138bbCopy full SHA for 21138bb
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