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));
}
stepCounter++;
stepCounter%=outputFrequency;
}
writeOutput(new TupleClassifier(tree, WekaUtilities.getAttributes(dataset), classIndex));
if(mSummaryOutput != null)
mSummaryOutput.write(ControlBlock.LIST_END);
iterativeStageComplete();
}
catch (PipeClosedException e)