Make rates return as decimal and implement f-measure