question: public ConfusionMatrix ( ArrayList < ClassLabel > labels , int [ ] [ ] confusion ) throws IllegalArgumentException { for ( int i = 0 ; i < confusion . length ; i ++ ) { if ( confusion . length != confusion [ i ] . length ) { throw new IllegalArgumentException ( "Confusion matrix irregular: row-dimension = " + confusion . length + ", col-dimension in col" + i + " = " + confusion [ i ] . length ) ; } } if ( confusion . length != labels . size ( ) ) { throw new IllegalArgumentException ( "Number of class labels does not match row dimension of confusion matrix." ) ; } this . confusion = confusion ; this . labels = labels ; }
target:  Provides a confusion matrix for the given values.