Precision-Recall Curve for Binary Classification - Coding problem | OneNoughtOne