Naive Bayes and Logistic Regression Implementations