Weighted Harmonic Mean of Precision and Recall - Coding problem | OneNoughtOne