weka - Making predictions: "Classifiers
After a model has been saved, one can make predictions for a test set, whether that set contains valid class values or not. The output will contain both the actual and predicted class. (Note that if the test class contains simply '?' for the class label for each instance, the "actual" class label for each instance will not contain useful information, but the predicted class label will.) The "-T " command-line switch specifies the dataset of instances whose classes are to be predicted, while the "-p " switch allows the user to write out a range of attributes (examples: "1-2" for the first and second attributes, or "0" for no attributes). Sample command line:
java weka.classifiers.trees.J48 -T unclassified.arff -l j48.model -p 0"
'via Blog this'