int counter = 0;
do {
try {
return m_Evaluation.getTrainTestPredictions(dc, train, test);
} catch (UnsupportedAttributeTypeException ex) {
SelectedTag tag = null;
boolean invert = false;
String msg = ex.getMessage();
if ((msg.indexOf("string") != -1) &&
(msg.indexOf("attributes") != -1)) {
System.err.println("\nDeleting string attributes.");
tag = new SelectedTag(Attribute.STRING,
RemoveType.TAGS_ATTRIBUTETYPE);
} else if ((msg.indexOf("only") != -1) &&
(msg.indexOf("nominal") != -1)) {
System.err.println("\nDeleting non-nominal attributes.");
tag = new SelectedTag(Attribute.NOMINAL,
RemoveType.TAGS_ATTRIBUTETYPE);
invert = true;
} else if ((msg.indexOf("only") != -1) &&
(msg.indexOf("numeric") != -1)) {
System.err.println("\nDeleting non-numeric attributes.");
tag = new SelectedTag(Attribute.NUMERIC,
RemoveType.TAGS_ATTRIBUTETYPE);
invert = true;
} else {
throw ex;
}