confidence weighted accuracy assuming the scores are probabilities and using .5 as threshold concode_field_sep int[] numpositive concode_elem_sep int[] numnegative concode_elem_sep double[] scores concode_elem_sep int[] classes concode_elem_sep Logger logger concode_elem_sep int[] guesses 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 cwa concode_elem_sep double opFmeasure concode_elem_sep double logLikelihood concode_elem_sep int numSamples concode_elem_sep double fmeasure concode_elem_sep double fmeasure concode_elem_sep double optimalAccuracy
int [ ] function ( ) { int [ ] loc0 = new int [ numSamples ( ) ] ; for ( int loc1 = 1 ; loc1 <= numSamples ( ) ; loc1 ++ ) { loc0 [ loc1 - 1 ] = precision ( loc1 ) ; } return loc0 ; }