According to [Wikipedia](https://en.wikipedia.org/wiki/Information_retrieval#Average_precision), the average precision of the example below should be 0.5 instead of 0.25. ``` In [44]: y_true = np.array([0, 1, 0, 0, 0]) ...: y_scores = np.array([0.7, 0.8, 0.5, 0.9, 0.1]) ...: In [45]: print(average_precision_score(y_true, y_scores)) 0.25 ```
Activity
jnothman commentedon Aug 24, 2017
julj commentedon Aug 24, 2017
It was 0.18.1, and it seems to be fixed in 0.19.0.