Benjamin Good wrote:
Could some one tell me how to change the header information in an
"Instances" object? I am trying to run test data through a pre-trained
classifier but am having trouble getting the sensible predicitions out. If
I replace the header info in the arff test file with a copy of the header
from the training file it runs just fine, but I need to do this without hand
editing the file.
thanks for your suggestions
It really depends on what changes you need to make to the header to make
the testing data compatible with the training data. There are various
filters you can use to transform a dataset in different ways. Why is the
header of the testing data not compatible in the first place?