public static final double chooseMostCommonRightHandClassAccuracy ( SummaryConfusionMatrix m ) { final double total = m . sumOfallCells ( ) ; double max = 0.0 ; for ( final Symbol right : m . rightLabels ( ) ) { max = Math . max ( max , m . columnSum ( right ) ) ; } return DoubleUtils . XOverYOrZero ( max , total ) ; }
Returns the maximum accuracy that would be achieved if a single classification were selected for all instances .