Naive Bayes face classification, digit classification, and text classification