public String toString () {
StringBuffer sb = new StringBuffer ();
int maxLabelNameLength = 0;
LabelAlphabet labelAlphabet = trial.getClassifier().getLabelAlphabet();
for (int i = 0; i < numClasses; i++) {
int len = labelAlphabet.lookupLabel(i).toString().length();
if (maxLabelNameLength < len)
maxLabelNameLength = len;
}
sb.append ("Confusion Matrix, row=true, column=predicted accuracy="+trial.getAccuracy()+"\n");