I trained a model with
java -Xmx6g -cp /usr/share/java/weka.jar weka.classifiers.bayes.NaiveBayes -t train.arff -d foo.nb
and I want to score a test file with it.
I tried
java -Xmx6g -cp /usr/share/java/weka.jar weka.classifiers.bayes.NaiveBayes -T test.arff -l foo.nb -p N
which produces no files but writes some text pasts of which can be construed to be scores to stdout (and is unbelievable slow):
inst# actual predicted error prediction ()
1 1:0 1:0 0.549
2 1:0 1:0 0.55
3 1:0 1:0 0.531
4 1:0 1:0 0.515
5 2:1 1:0 + 0.552
6 1:0 1:0 0.532
7 1:0 2:1 + 0.519
If I read this correctly, the last column is the score and 3rd is the prediction based on it. Why does score 0.55 correspond to 0 (instance#2) but a smaller score 0.519 correspond to 1 (instance#7)?
Where is the output documented?
Is there a way to produce the csv score file?
Thanks!