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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to