I have gotten the model by training a classifier, but how can I get the prediction results
of a test file which has not any target?
What I do - and I don't know if there is a better way - is that I
create another ARFF file with the data I wish to classify BUT with a
"dummy" classification and then I pass this to the trained classifier e.g:
(i) (Using the file MyTree.arff) Train and Save the classifier: MyTree.tree
java weka.classifiers.trees.j48.J48 -t MyFile.arff -d MyTree.tree
(ii) Pass the unclassified data: MyInstance.arff into the classifier
MyTree.tree (and optionally save result of classification to MyResults.txt)
java weka.classifiers.trees.j48.J48 -T MyInstance.arff -l MyTree.tree -p
0 > MyResults.txt
NOTE: MyInstance.arff contains rows of the feature data to which I
append some class only for tha sake of conformity. Else Weka will
complain that MyInstance.arff is one entry short or something like that ...