Naive Bayes prediction for binary class