newTrain.numInstances());
newTrainTransformed.setClassIndex(newTrain.classIndex());
for (int i = 0; i < newTrain.numInstances(); i++) {
Instance inst = newTrain.instance(i);
newTrainTransformed.add(inst);
newTrainTransformed.lastInstance().
setClassValue(oldIndexToNewIndex[(int)inst.classValue()]);
}
newTrain = newTrainTransformed;
}
m_DiscretizedHeader = new Instances(newTrain, 0);