description = TupleUtilities.getString(readBlock(mDescriptionInput), INPUT_DESCRIPTION);
else
description = "";
HoeffdingTree tree = new HoeffdingTree();
String options;
try
{
if(mOptionsInput != null)
options = TupleUtilities.getMoaOptions(readBlock(mOptionsInput));
else
options = DEFAULT_OPTIONS;
}
catch (Exception e)
{
throw new ActivityUserException(e);
}
try
{
Tuple tuple;
tree.getOptions().setViaCLIString(options);
tree.prepareForUse();
Calendar cal = Calendar.getInstance();
this.startTime = cal.getTimeInMillis();
if(mSummaryOutput != null) {
mSummaryOutput.write(ControlBlock.LIST_BEGIN);
}
while((tuple = (Tuple)tuples.nextValue()) != null && tuple != ControlBlock.LIST_END) {
Instance inst = WekaUtilities.createInstance(dataset, tuple);
tree.trainOnInstance(inst);
if(stepCounter == 0) {
writeOutput(new TupleClassifier(tree, WekaUtilities.getAttributes(dataset), classIndex));
}