fmeasure_metric function

Method to calculate the f_measure.