logistic regression and naive bayes