int classIndex = TupleUtilities.getColumnIndex(iterationInputs[1], metadata, INPUT_CLASS_INDEX);
Map<Integer, List<Object>> nominalValues =
getNominalValues(iterationInputs, metadata);
Instances dataset = WekaUtilities.createClassificationDataset(tuples, classIndex, nominalValues);
String options = TupleUtilities.getAsString(iterationInputs[2], INPUT_OPTIONS);
Classifier classifier = null;
try
{
classifier = loadClassifier(options);
}
catch(InvalidWekaOptionsException exc)
{
throw new ActivityUserException(exc);
}
try
{
classifier.buildClassifier(dataset);
}
catch (Exception e)
{
throw new ActivityUserException(e);
}