I am not sure if weka GUI has a direct option for this. However, you can achieve the same through the command line
java weka.classifiers.meta.FilteredClassifier -F weka.filters.unsupervised.attribute.RemoveType -W weka.classifiers.trees.RandomForest -t G:\pub-resampled-0.5.arff -TG:\test.csv.arff -p 1 -distribution > G:\out.txt
In the above example, the first attribute is an identifier (string). The RemoveType filter will remove all string fields when building the model. However, you can still ask weka to include this identifier as part of the output (prediction) by passing -p as an argument. In my case, the first attribute (partner_id) is an identifier, so it falls into the list along with forecasts. (option -distribution - display forecast estimates for all class labels). You can get more information from http://weka.wikispaces.com/Instance+ID
=== Predictions on test data === inst# actual predicted error distribution (partner_id) 1 1:? 2:0 0,*1 (8i7t3) 2 1:? 2:0 0,*1 (8i7u1) 3 1:? 2:0 0,*1 (8i7um) 4 1:? 2:0 0.1,*0.9 (8i7ux) 5 1:? 2:0 0,*1 (8i7va) 6 1:? 2:0 0,*1 (8i7vb) 7 1:? 2:0 0,*1 (8i7vf)
Hope you find this helpful.
source share