The term "feedback" is not clear. Maybe call this function: "evaluateMeasureToMaximize".

And add comment: "this function accepts as input a PrecisionRecall structure, and extracts from it a single number that is the measure we want to maximize, i.e., Accuracy or F1".