double function ( ) { double loc0 = 0 ; for ( Map . Entry < String , Map < String , Long >> loc1 : linearizedMatrix . entrySet ( ) ) { String loc2 = loc1 . getKey ( ) ; loc0 += getPrecision ( loc2 ) ; } return loc0 / linearizedMatrix . size ( ) ; }
get the macro averaged precision see #getprecision string over all the classes . concode_field_sep Map<String,Map<String,Long>> linearizedMatrix concode_elem_sep int numberOfEvaluatedDocs concode_elem_sep double accuracy concode_elem_sep double avgClassificationTime concode_field_sep ConfusionMatrix getConfusionMatrix concode_elem_sep double getAccuracy concode_elem_sep Map<String,Map<String,Long>> getLinearizedMatrix concode_elem_sep double getRecall concode_elem_sep double getRecall concode_elem_sep String toString concode_elem_sep double getAvgClassificationTime concode_elem_sep int getNumberOfEvaluatedDocs concode_elem_sep double getF1Measure concode_elem_sep double getF1Measure