confidence weighted accuracy assuming the scores are probabilities and using .5 as treshold concode_field_sep int[] numpositive concode_elem_sep int[] numnegative concode_elem_sep double[] scores concode_elem_sep int[] classes concode_elem_sep int[] guesses concode_elem_sep Redwood.RedwoodChannels logger concode_field_sep void init concode_elem_sep void init concode_elem_sep double optimalCwa concode_elem_sep boolean correct concode_elem_sep int[] cwaArray concode_elem_sep double optFmeasure concode_elem_sep int precision concode_elem_sep double accuracy concode_elem_sep int logPrecision concode_elem_sep void initMC concode_elem_sep void main concode_elem_sep double f1 concode_elem_sep double opFmeasure concode_elem_sep double logLikelihood concode_elem_sep int[] optimalCwaArray concode_elem_sep int numSamples concode_elem_sep double fmeasure concode_elem_sep double fmeasure concode_elem_sep double optimalAccuracy
double function ( ) { double loc0 = 0 ; for ( int loc1 = 1 ; loc1 <= numSamples ( ) ; loc1 ++ ) { loc0 += logPrecision ( loc1 ) / ( double ) loc1 ; } return loc0 / numSamples ( ) ; }