We start with a very high threshold enabling precision of 100% and lower the threshold until recall of 100% is reached.
we sort the test examples by score in descending order and then go down the list of scores in order to complete the entire precision-recall curve.