// and set the data set to the training data. This is
// just in case this test data was loaded from a CSV file
// with all missing values for a nominal class (in this
// case we have no information on the legal class values
// in the test data)
if (tempInst.isMissing(tempInst.classIndex()) &&
!(classifier instanceof weka.classifiers.misc.InputMappedClassifier)) {
tempInst = (Instance)testSet.instance(i).copy();
tempInst.setDataset(trainSet);
}
double predClass =