I think this line must also take account for `sample_weight`, or else it might be less than 0.

The test for this function will be that `pr_curve` outputs values corresponding to naively calculating `precision_recall_fscore_support` at each threshold. It would be a nice test to have anyway to check our implementation is sane.