I am using weka to predict the class for some instances. For this purpose, I have a training file and a test file. After saving the model obtained by running a 10-fold cross validation test using the J48 classifier, I use this model to predict the classes for the instances in the test file. The problem is that the predicted class is the same for all instances.
=== Predictions on test data ===
inst# actual predicted error prediction
1 34:BALT 1:Theme + 0.216
2 34:BALT 1:Theme + 0.216
3 34:BALT 1:Theme + 0.216
4 34:BALT 1:Theme + 0.216
5 34:BALT 1:Theme + 0.216
6 34:BALT 1:Theme + 0.216
7 34:BALT 1:Theme + 0.216
8 34:BALT 1:Theme + 0.216
9 34:BALT 1:Theme + 0.216
10 34:BALT 1:Theme + 0.216
11 34:BALT 1:Theme + 0.216
12 34:BALT 1:Theme + 0.216
13 34:BALT 1:Theme + 0.216
14 34:BALT 1:Theme + 0.216
and so on....
There are 14 different classes that can be predicted by the model and the information contained in the instances from the test file do not have the same values in it. So, why can this happen? Thank you very much.