Adding the weighting of precision/recall in F1 functionality during the training phase