Naive Bayes and AdaBoost algorithm