protected void setupData ()
{
Timing timing = new Timing ();
training = new InstanceList (featurePipe);
training.addThruPipe (new PipedIterator (trainIterator, tokPipe));
if (trainingPct > 0) training = subsetData (training, trainingPct);
if (testIterator != null) {
testing = new InstanceList (featurePipe);
testing.addThruPipe (new PipedIterator (testIterator, tokPipe));
if (testingPct > 0) testing = subsetData (testing, trainingPct);
}
timing.tick ("Data loading");
}