Dear All,I encountered a problem when I use RWeka for prediction.
Specifically, I use the following:

res=J48(X1~.,data=mydata);
predict(res), #it worked fine

but when I tried to use a different data set,

i.e. predict(res,newdata=mynewdata);
all the predictions I get is 0, which apparently is problematic.

What is weird is, if I use the old data, but use the newdata option,
i.e.

predict(res,newdata=mydata), all prediction is 0;

Can anyone hint me what is wrong?

Thanks a lot.
Regards,
Dajiang

	[[alternative HTML version deleted]]


