On Discriminative vs. Generative Classifiers: A comparison of logistic regression and naive Bayes