Skip to content

Commit

Permalink
DOC Note change of average_precision_score() in docstring (scikit-lea…
Browse files Browse the repository at this point in the history
  • Loading branch information
f0k authored and jnothman committed Mar 1, 2018
1 parent a97e78b commit ec691e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sklearn/metrics/ranking.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def average_precision_score(y_true, y_score, average="macro",
>>> average_precision_score(y_true, y_scores) # doctest: +ELLIPSIS
0.83...
Notes
-----
.. versionchanged:: 0.19
Instead of linearly interpolating between operating points, precisions
are weighted by the change in recall since the last operating point.
"""
def _binary_uninterpolated_average_precision(
y_true, y_score, sample_weight=None):
Expand Down

0 comments on commit ec691e9

Please sign in to comment.