Attribute predictedClass;
Attribute classAt = trainInstances.attribute(trainInstances.classIndex());
if (classAt.isNominal()) {
FastVector attVals = new FastVector();
for (int i = 0; i < classAt.numValues(); i++) {
attVals.addElement(classAt.value(i));
}
predictedClass = new Attribute(Messages.getInstance().getString("ClassifierPanel_SetUpVisualizableInstances_PredictedClass_Attribute_Text_First") + classAt.name(), attVals);
} else {
predictedClass = new Attribute(Messages.getInstance().getString("ClassifierPanel_SetUpVisualizableInstances_PredictedClass_Attribute_Text_Second") + classAt.name());