Aimin:
The problem is that the columns you choose for training (only 4
variables) do not match the ones used for prediction (all except y).
David
I try to use naiveBayes
p.nb.90-naiveBayes(y~aa_three+bas+bcu+aa_ss,data=training)
I try to use naiveBayes
p.nb.90-naiveBayes(y~aa_three+bas+bcu+aa_ss,data=training)
pr.nb.90-table(predict(p.nb.90,training[,-13],type=class),training[,13])
bur I get this error
Error in object$tables[[v]] : subscript out of bounds
head is data set
head(training)
pr aa_three aa_one